-
Notifications
You must be signed in to change notification settings - Fork 655
Open
Description
Pressing the "deploy to netlify" button here causes the following error.

according to the AI response,
npx browserslist@latest --update-db
should be run on the deployment container.
I'm not sure how to do that with this repo.
Can I just clone the repo and run the command?
Attached below it the actual error log for your reference. Anyone else get the same issue?
3:12:11 PM: node:internal/errors:496
3:12:11 PM: ErrorCaptureStackTrace(err);
3:12:11 PM: ^
3:12:11 PM: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in /opt/build/repo/node_modules/next/node_modules/postcss/package.json
3:12:11 PM: at new NodeError (node:internal/errors:405:5)
3:12:11 PM: at exportsNotFound (node:internal/modules/esm/resolve:366:10)
3:12:11 PM: at packageExportsResolve (node:internal/modules/esm/resolve:713:9)
3:12:11 PM: at resolveExports (node:internal/modules/cjs/loader:590:36)
3:12:11 PM: at Module._findPath (node:internal/modules/cjs/loader:664:31)
3:12:11 PM: at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
3:12:11 PM: at Module._load (node:internal/modules/cjs/loader:981:27)
3:12:11 PM: at Module.require (node:internal/modules/cjs/loader:1231:19)
3:12:11 PM: at require (node:internal/modules/helpers:177:18)
3:12:11 PM: at 552 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11590)
3:12:11 PM: at __nccwpck_require__ (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
3:12:11 PM: at 270 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:400)
3:12:11 PM: at __nccwpck_require__ (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
3:12:11 PM: at 327 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:260)
3:12:11 PM: at __nccwpck_require__ (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
3:12:11 PM: at 845 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:3733) {
3:12:11 PM: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
3:12:11 PM: }
3:12:11 PM: Node.js v18.20.2
3:12:11 PM:
3:12:11 PM: "build.command" failed
3:12:11 PM: ────────────────────────────────────────────────────────────────
3:12:11 PM:
3:12:11 PM: Error message
3:12:11 PM: Command failed with exit code 1: npm run export (https://ntl.fyi/exit-code-1)
3:12:11 PM:
3:12:11 PM: Error location
3:12:11 PM: In build.command from netlify.toml:
3:12:11 PM: npm run export
3:12:11 PM:
3:12:11 PM: Resolved config
3:12:11 PM: build:
3:12:11 PM: command: npm run export
3:12:11 PM: commandOrigin: config
3:12:11 PM: publish: /opt/build/repo/dist
3:12:11 PM: publishOrigin: config
3:12:11 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:12:11 PM: Failing build: Failed to build site
3:12:12 PM: Finished processing build request in 27.164s
Thanks!
Metadata
Metadata
Assignees
Labels
No labels