Wrong sourcemaps #15752
AlexisLeite
started this conversation in
General
Wrong sourcemaps
#15752
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am working in a Monorepo with Lerna@8.0.2 and I am facing an issue when debugging on chrome.
I have three packages:
common
: exports some libs and have no depstables
: exports some libs and depends on commondevserver
: exports nothing and depends on common and tables.Also, devserver package is running the dev server as its name suggest using "vite" command but I also
tryied with "webpack serve".
The problem
When I put a breakpoint in Chrome, the maps from
devserver
andtables
are getting loaded fine, but for some reason the map fromcommon
is broken.When I inspect
common
code, there is a sourcemap being loaded but a wrong one: it points to an intermediate bundle state, as it has this line at its ending//# sourceMappingURL=common.es.js.map
, and also chrome says:From tables.es.js
.I may be missing something, but I have researched a lot and could not solve it. Here is my vite configuration for
common
andtable
packages:Beta Was this translation helpful? Give feedback.
All reactions