-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Bug]: Runtime.ImportModuleError - Error: Cannot find module 'follow-redirects'
when deploying with netlify-cli and pnpm
#2323
Comments
Related: #1834 I have tried with and without |
Hey @elliottsj - thanks for raising this. Also, we're working on some major improvements to the runtime which should make future Next.js version support on Netlify much better. 👍🏻 |
This issue affects Next.js 13.4 as well. Commit: elliottsj/nextjs-netlify-follow-redirects-issue@669b8ad Update: deployed again here, with logs showing the version number: Commit: elliottsj/nextjs-netlify-follow-redirects-issue@0c5bdd5 |
Tried downgrading to Commit: elliottsj/nextjs-netlify-follow-redirects-issue@8bded9d |
Hi @MarcL, #2313 has been merged. But the Runtime.ImportModule error still persists in my project. I'm using [email protected] |
The team at Netlify have now released the new You can find the documentation and additional information on the new runtime here: Next.js on Netlify The Thanks! |
Ayy! Great work! 🚀 |
Summary
When using:
[email protected]
[email protected]
@netlify/[email protected]
[email protected]
[email protected]
A module import error
Cannot find module 'follow-redirects'
occurs when visiting the site.A link to a reproduction repository
https://github.com/elliottsj/nextjs-netlify-follow-redirects-issue
https://nextjs-follow-redirects-docs.netlify.app/
Expected Result
No error
Actual Result
Steps to reproduce
Visit https://github.com/elliottsj/nextjs-netlify-follow-redirects-issue and follow the steps in the README.
To deploy to a new Netlify site, change the
--site
value inapps/docs/package.json
.Next Runtime version
4.40.2
Is your issue related to the
app
directory?app
directoryMore information about your build
netlify.toml
)What OS are you using?
Mac OS
Your netlify.toml file
`netlify.toml`
Your public/_redirects file
`_redirects`
Your
next.config.js
file`next.config.js`
Builds logs (or link to your logs)
Build logs
Function logs
Function logs
.next JSON files
generated .next JSON files
.next/build-manifest.json
.next/server/pages-manifest.json
The text was updated successfully, but these errors were encountered: