Skip to content

Any idea to resolve: Module not found: Can't resolve 'process' #1810

Answered by MoOx
MoOx asked this question in Q&A
Discussion options

You must be logged in to vote

If you are facing issue like this Can't resolve 'SOME NODE MODULE' and/or have to use workaround like web pack config.resolve to "disable" some modules that trigger the issue, you are probably not following the "rule" of writing Node code in pages folder only. In short Node import & code MUST be in pages folder, otherwise not correctly removed for the frontend. In my case, my pages are not written in the page folder and that's what trigger the problem. Moving Node code into pages (must be JS then... :( ) allow Next to remove the Node code properly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MoOx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant