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'm using a monorepo with pnpm. My Epic Stack project has a dependency on another workspace
// package.json"my-react-lib": "workspace:*"
when my-react-lib gets rebuilt, the built artefact gets removed for a sec and the new one replaces it
when this happens, dev-server crashes with an error that looks something like
[vite] Error when evaluating SSR module virtual:remix/server-build: failed to import "app/routes/my-page.tsx"Error: Failed to load url /@fs/monorepo/my-project/dist/my-react-lib.js (resolved id: /@fs/monorepo/my-project/dist/my-react-lib.js ) in /@fs/monorepo/my-epic-stack-project/app/routes/my-page.tsx. Does the file exist? at loadAndTransform (file:///monorepo/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-G-px366b.js:53634:21) at instantiateModule (file:///monorepo/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-G-px366b.js:54656:10)
By it crashes, I mean, when I reload the browser to show my-page, chrome says This site can’t be reached ERR_CONNECTION_REFUSED
workaround: restart the dev-server manually: Ctrl+C, and then npm run dev
I tried to fix this issue by myself but all my attempts have failed so far
The text was updated successfully, but these errors were encountered:
I'm using a monorepo with pnpm. My Epic Stack project has a dependency on another workspace
when
my-react-lib
gets rebuilt, the built artefact gets removed for a sec and the new one replaces itwhen this happens, dev-server crashes with an error that looks something like
By it crashes, I mean, when I reload the browser to show my-page, chrome says
This site can’t be reached ERR_CONNECTION_REFUSED
workaround: restart the dev-server manually: Ctrl+C, and then
npm run dev
I tried to fix this issue by myself but all my attempts have failed so far
The text was updated successfully, but these errors were encountered: