This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
transpile node_modules on server side #26771
Labels
bug
Issue was opened via the bug report template.
What version of Next.js are you using?
10.0.7
What version of Node.js are you using?
12.18.3
What browser are you using?
Chrome
What operating system are you using?
Mac
How are you deploying your application?
AWS
Describe the Bug
extending my babel.config.js with next/babel , and extending my webpack config to include a package from node_modules, does not transpile the package on the server side / node.
I see that there is a solution to use next-transpile-modules, but I am just not sure why the current setup would not work.
I use the setup in other browser only projects to transpile a particular node module through webpack / babel config.
Expected Behavior
I would expect the babel loader to correctly transpile the node_modules package for usage in server / node.js, since i am using next/babel
To Reproduce
custom webpack babel loader config:
The text was updated successfully, but these errors were encountered: