Comments (2)
Fixed in v0.1.0.
^ make sure to run open-next
with the latest
npm version. ie. npx open-next@latest build
from open-next.
@fwang It doesn't seem to be a problem with the @vercel/next package.
Yarn berry can be resolved @vercel/next package error with packageExtensions in .yarnrc.yml
But, In my case, I'm getting error in post install of @vercel/build-utils package.
@vercel/build-utils package uses node_modules, but it seems that the module cannot be read in yarn berry's pnp mode.
Is there any other issue solutions?
Here is my build error log
# This file contains the result of Yarn building a package (esbuild@npm:0.15.18)
# Script name: postinstall
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/Users/x/open-next-test-app/.pnp.cjs'
Require stack:
- internal/preload
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module._preloadModules (node:internal/modules/cjs/loader:1282:12)
at loadPreloadModules (node:internal/bootstrap/pre_execution:539:5)
at prepareMainThreadExecution (node:internal/bootstrap/pre_execution:85:3)
at node:internal/main/run_main_module:7:1 {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'internal/preload' ]
}
My terminal's error log is:
➤ YN0000: Failed with errors in 7s 112ms
/Users/x/open-next-test-app/.yarn/cache/@vercel-build-utils-npm-6.0.0-54771bcb7f-e80ef3c4a2.zip/node_modules/@vercel/build-utils/dist/index.js:31009
reject(new errors_1.NowBuildError({
^
NowBuildError: Command "yarn install" exited with 1
at ChildProcess.<anonymous> (/Users/x/open-next-test-app/.yarn/cache/@vercel-build-utils-npm-6.0.0-54771bcb7f-e80ef3c4a2.zip/node_modules/@vercel/build-utils/dist/index.js:31009:20)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
hideStackTrace: true,
code: 'BUILD_UTILS_SPAWN_1',
link: undefined,
action: undefined
}
from open-next.
Related Issues (20)
- ENOENT: no such file or directory, scandir '.open-next/...' HOT 19
- Nextjs doesn't have "copyFiles" property HOT 2
- Next.js redirects in config broken in rc15 HOT 5
- Hitting a non-existent route results in infinite redirect. Same app behaves correctly locally and on vercel. HOT 4
- Image optimization fails due to version mismatch HOT 15
- [BUG] Could not resolve `@aws-sdk/client-sso-oidc` HOT 3
- Unable to Deploy Serverless with API Gateway HOT 4
- [BUG] Error on Warmer function HOT 3
- Lambda@Edge tried to add, delete, or change a read-only header HOT 2
- Undefined environment variables after upgrade to V3 HOT 4
- getting started ion link redirecting to wrong page HOT 1
- (Next)Auth doesn't properly refresh the page when deployed using Open Next HOT 7
- Redirect to different domain result in invalid url HOT 1
- ImageFunction fails with "TypeError: Cannot read properties of undefined (reading 'getStore')" HOT 3
- Next config redirects is not working correctly on Next 12 HOT 1
- URL with semicolon in query params throws 400 error HOT 1
- Open next with SST on AWS - Missing Cloudfront Behaviors HOT 7
- Next config redirects is not working correctly with i18n default platform HOT 4
- NX Monorepo support HOT 1
- Post Deployment MIME Type Mismatch With Safari HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-next.