GithubHelp home page GithubHelp logo

[Bug]: `Runtime.ImportModuleError - Error: Cannot find module 'follow-redirects'` when deploying with netlify-cli and pnpm about next-runtime HOT 5 OPEN

elliottsj avatar elliottsj commented on June 1, 2024
[Bug]: `Runtime.ImportModuleError - Error: Cannot find module 'follow-redirects'` when deploying with netlify-cli and pnpm

from next-runtime.

Comments (5)

MarcL avatar MarcL commented on June 1, 2024 3

Hey @elliottsj - thanks for raising this.
We've seen a few issues with Next 13.5+ and our runtime which we're trying to sort out.
Once this PR is merged and released, can you try building again?

#2313

Also, we're working on some major improvements to the runtime which should make future Next.js version support on Netlify much better. 👍🏻

from next-runtime.

elliottsj avatar elliottsj commented on June 1, 2024

Related: #1834

I have tried with and without public-hoist-pattern[] = follow-redirects in .npmrc, and the same result occurs.

from next-runtime.

elliottsj avatar elliottsj commented on June 1, 2024

This issue affects Next.js 13.4 as well.

Commit: elliottsj/nextjs-netlify-follow-redirects-issue@669b8ad
Deploy job: https://github.com/elliottsj/nextjs-netlify-follow-redirects-issue/actions/runs/6477034686/job/17586616872
Site URL: https://6526020579509c6f02acbbc9--nextjs-follow-redirects-docs.netlify.app

Update: deployed again here, with logs showing the version number:

Commit: elliottsj/nextjs-netlify-follow-redirects-issue@0c5bdd5
Deploy job: https://github.com/elliottsj/nextjs-netlify-follow-redirects-issue/actions/runs/6600138361/job/17929857387
Site URL: https://653458ab9c63b34d3835ac3d--nextjs-follow-redirects-docs.netlify.app

from next-runtime.

elliottsj avatar elliottsj commented on June 1, 2024

Tried downgrading to netlify-cli@^15.11.0. Same result:

Commit: elliottsj/nextjs-netlify-follow-redirects-issue@8bded9d
Deploy job: https://github.com/elliottsj/nextjs-netlify-follow-redirects-issue/actions/runs/6721993516/job/18268962647
Site URL: https://65427638489c30182dc810ad--nextjs-follow-redirects-docs.netlify.app

from next-runtime.

kaf-lamed-beyt avatar kaf-lamed-beyt commented on June 1, 2024

Hey @elliottsj - thanks for raising this. We've seen a few issues with Next 13.5+ and our runtime which we're trying to sort out. Once this PR is merged and released, can you try building again?

#2313

Also, we're working on some major improvements to the runtime which should make future Next.js version support on Netlify much better. 👍🏻

Hi @MarcL, #2313 has been merged. But the Runtime.ImportModule error still persists in my project. I'm using [email protected]

from next-runtime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.