-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Set the node_modules as symlink in 9.5.2, the build process fails #16287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Feel free to investigate the issue @jyunhanlin |
In |
Investigation update: When set the node_modules as symlink, and the run Refer to facebook/react#16029 (comment) config.externals = [
...config.externals,
{
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
}
] The build process is success. The next.js version is |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
Set the node_modules as symlink, in v9.5.2, the build process fail while v9.4.4 is success.
The error messages:
To Reproduce
yarn create next-app
rm -rf node_modules
&ln -s some_path/node_modules
yarn
&yarn build
System information
The text was updated successfully, but these errors were encountered: