Giter Club home page Giter Club logo

Comments (2)

fwang avatar fwang commented on July 28, 2024

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.

trustyoo86 avatar trustyoo86 commented on July 28, 2024

@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)

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.