Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't read sourcemap file #10172

Closed
7 tasks done
qyd159 opened this issue Sep 20, 2022 · 1 comment
Closed
7 tasks done

can't read sourcemap file #10172

qyd159 opened this issue Sep 20, 2022 · 1 comment

Comments

@qyd159
Copy link

qyd159 commented Sep 20, 2022

Describe the bug

some files of my lib are named of chinese words,so tsc generates sourcemaps
image
like this,but vite's dev mode seems not work properly with this sourcemap.
will output logs ‘failed to load sourcemap’
image

Reproduction

it's hard to provide

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz  
    Memory: 9.66 GB / 31.82 GB
  Binaries:
    Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 105.0.5195.127
    Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.33)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-legacy: ^1.8.2 => 1.8.2 
    @vitejs/plugin-vue: ^2.0.0 => 2.3.3 
    @vitejs/plugin-vue-jsx: ^1.3.1 => 1.3.10 
    vite: 2.9.13 => 2.9.13

Used Package Manager

pnpm

Logs

下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/秒针.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/时钟中心点.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/角名.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/刻度.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/内轨迹.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/common/图元/时钟集/外轨迹.js.
下午6:41:32 [vite] Failed to load source map for /@fs/C:/projects/draw-board/packages/graph-model/dist/assets/刻度素材.js

Validations

@github-actions
Copy link

Hello @qyd159. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants