opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://open-next.js.org
MIT License
3.9k stars 119 forks source link

[Feature Request] - package agnostic runner #479

Closed tommyboylab closed 10 hours ago

tommyboylab commented 2 months ago

I've recently tried moving from serverless to SST ION and noticed that it requires yarn as the default package manager based on the OpenNext deployment.

Trying to run the application with another package manager throws errors such as missing the package manager, or

Error: Next.js requires react >= 18.2.0 to be installed.

I would like to be able to execute the deployment and dev environments using the package manager of my choice (in this case Bun)

Thank you.

conico974 commented 2 months ago

OpenNext does support the 4 package manager (i.e. npm, pnpm, yarn and bun). The error you show has nothing to do with OpenNext, Error: Next.js requires react >= 18.2.0 to be installed is thrown by Next not OpenNext