Closed toggery closed 3 years ago
When run build script, the command line displays as follows:
Sourcemap is likely to be incorrect: a plugin (vite-plugin-imp) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Could you provide a minimal reproduce repo or the steps to reproduce the behavior?
The steps to reproduce:
vite-electron-builder-main
;npm install
or yarn
;npm install element-plus --save
or yarn add element-plus
npm install vite-plugin-imp -D
or yarn add vite-plugin-imp -D
;vite.config.js
follow the instructions;packages/render/src/components/home.vue
, import and use the component ElButton
;npm run compile
or yarn compile
, then the tips appears;packages/renderer/
vite v2.1.2 building for production...
✓ 30 modules transformed.
rendering chunks (1)... Sourcemap is likely to be incorrect: a plugin (vite-plugin-imp) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Fixed in v2.0.5!
Great! It works normally after update.
@psaren V2.0.7 still encountered this problem when processing the antd library.
@mushan0x0 Providing a reproducible repo can help me locate the problem.
I still have this issue in 2.8.6. Anyone found a cure?
Reopen this please, the issue appears agian
i have the same problem!!!
Im getting the inccorect line number in chrome. I have this issue but its locked.
https://github.com/onebay/vite-plugin-imp/issues/7#issuecomment-877030438
Please unlock or provide a solution...
When run build script, the command line displays as follows:
Sourcemap is likely to be incorrect: a plugin (vite-plugin-imp) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help