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
This works fine in development.
When I build to a server version and removed src directories things start to fail.
Ultimately I see references in the build that reference the original path.resolve('../server/src/modules'). In other words, this is not being processed correctly by webpack. It tries to load from src directories instead of the processed chunks.
Is there a way to resolve this? Please don't say: upgrade to next 12. I've had tons of issues with that, not least of which the obligation to upgrade to async import.
The text was updated successfully, but these errors were encountered:
Can you provide the steps to reproduce with nft print path/to/file.js or nft build path/to/file.js?
this is not being processed correctly by webpack
This repo @vercel/nft doesn't use webpack.
Please don't say: upgrade to next 12
Next.js 11 doesn't get the latest update from this repo (@vercel/nft). Any changes here would need to go into a new Next.js version and then you would need to upgrade to that version to see the effect.
Tested against 11.1.4
I have a monorepo with a server api where some of the files are dynamically sync loaded through require based on variables.
This works fine in development.
When I build to a server version and removed
src
directories things start to fail.Ultimately I see references in the build that reference the original
path.resolve('../server/src/modules')
. In other words, this is not being processed correctly by webpack. It tries to load from src directories instead of the processed chunks.Is there a way to resolve this? Please don't say: upgrade to next 12. I've had tons of issues with that, not least of which the obligation to upgrade to async import.
The text was updated successfully, but these errors were encountered: