You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working in a Monorepo with [email protected] and I am facing an issue when debugging on chrome.
I have three packages:
common: exports some libs and have no deps
tables: exports some libs and depends on common
devserver: 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 and tables are getting loaded fine, but for some reason the map from common 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 and table packages:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I am working in a Monorepo with [email protected] 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