-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Module not found: Can't resolve 'private-next-pages/about.js' #8748
Comments
I just solved! The problem was with my
Just ;) |
@k4lux , I'm also facing the same issue and I'm adding the components/pages path as well. The solution which you wrote resolve the module not found issue. But, we are getting 'private-next-pages/_apps.js not found' .Could you please help on resolving this? webpack(config) { |
You can use https://nextjs.org/docs/advanced-features/module-path-aliases to do path aliases, no need to change the webpack config. |
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
When I try to build I get the following error:
Module not found: Can't resolve 'private-next-pages/about.js'
Then build fails.
To Reproduce
about.js
with a component exported.Expected behavior
My application built
System information
The text was updated successfully, but these errors were encountered: