Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while trying to deploy the main/tensorflow branch in netlify edge function #2

Open
man-chi opened this issue Feb 24, 2024 · 0 comments

Comments

@man-chi
Copy link

man-chi commented Feb 24, 2024

I have cloned this repo netlify-wasm-runtime (with tensorflow branch) and deployed to netlify as edge function without any modification. however, the build process is failed. please help!

11:08:14 PM: Netlify Build
11:08:14 PM: ────────────────────────────────────────────────────────────────
11:08:14 PM: ​
11:08:14 PM: ❯ Version
11:08:14 PM: @netlify/build 29.36.0
11:08:14 PM: ​
11:08:14 PM: ❯ Flags
11:08:14 PM: baseRelDir: true
11:08:14 PM: buildId: 65da06420ae7ed07f99d9bd2
11:08:14 PM: deployId: 65da06420ae7ed07f99d9bd4
11:08:14 PM: ​
11:08:14 PM: ❯ Current directory
11:08:14 PM: /opt/build/repo
11:08:14 PM: ​
11:08:14 PM: ❯ Config file
11:08:14 PM: /opt/build/repo/netlify.toml
11:08:14 PM: ​
11:08:14 PM: ❯ Context
11:08:14 PM: production
11:08:14 PM: ​
11:08:14 PM: ❯ Installing plugins
11:08:14 PM: - @netlify/[email protected]
11:08:28 PM: ​
11:08:28 PM: ❯ Using Next.js Runtime - v4.41.3
11:08:30 PM: ​
11:08:30 PM: @netlify/plugin-nextjs (onPreBuild event)
11:08:30 PM: ────────────────────────────────────────────────────────────────
11:08:30 PM: ​
11:08:30 PM: No Next.js cache to restore.
11:08:30 PM: ​
11:08:30 PM: (@netlify/plugin-nextjs onPreBuild completed in 92ms)
11:08:30 PM: ​
11:08:30 PM: Build command from Netlify app
11:08:30 PM: ────────────────────────────────────────────────────────────────
11:08:30 PM: ​
11:08:30 PM: $ yarn run build
11:08:30 PM: yarn run v1.22.19
11:08:30 PM: $ next build && cd api && ./pre.sh
11:08:30 PM: Browserslist: caniuse-lite is outdated. Please run:
11:08:30 PM: npx browserslist@latest --update-db
11:08:30 PM: Why you should do it regularly:
11:08:30 PM: https://github.com/browserslist/browserslist#browsers-data-updating
11:08:30 PM: node:internal/errors:496
11:08:30 PM: ErrorCaptureStackTrace(err);
11:08:30 PM: ^
11:08:30 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
11:08:30 PM: at new NodeError (node:internal/errors:405:5)
11:08:30 PM: at exportsNotFound (node:internal/modules/esm/resolve:366:10)
11:08:30 PM: at packageExportsResolve (node:internal/modules/esm/resolve:713:9)
11:08:30 PM: at resolveExports (node:internal/modules/cjs/loader:584:36)
11:08:30 PM: at Module._findPath (node:internal/modules/cjs/loader:658:31)
11:08:30 PM: at Module._resolveFilename (node:internal/modules/cjs/loader:1120:27)
11:08:30 PM: at Module._load (node:internal/modules/cjs/loader:975:27)
11:08:30 PM: at Module.require (node:internal/modules/cjs/loader:1225:19)
11:08:30 PM: at require (node:internal/modules/helpers:177:18)
11:08:30 PM: at 552 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11590)
11:08:30 PM: at nccwpck_require (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
11:08:30 PM: at 270 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:400)
11:08:30 PM: at nccwpck_require (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
11:08:30 PM: at 327 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:260)
11:08:30 PM: at nccwpck_require (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:11735)
11:08:30 PM: at 845 (/opt/build/repo/node_modules/next/dist/compiled/postcss-scss/scss-syntax.js:1:3733) {
11:08:30 PM: code: "ERR_PACKAGE_PATH_NOT_EXPORTED"
11:08:30 PM: }
11:08:30 PM: Node.js v18.19.1
11:08:30 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
11:08:30 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
11:08:30 PM: ​
11:08:30 PM: "build.command" failed
11:08:30 PM: ────────────────────────────────────────────────────────────────
11:08:30 PM: ​
11:08:30 PM: Error message
11:08:30 PM: Command failed with exit code 1: yarn run build (https://ntl.fyi/exit-code-1)
11:08:30 PM: ​
11:08:30 PM: Error location
11:08:30 PM: In Build command from Netlify app:
11:08:30 PM: yarn run build
11:08:30 PM: ​
11:08:30 PM: Resolved config
11:08:30 PM: build:
11:08:30 PM: command: yarn run build
11:08:30 PM: commandOrigin: ui
11:08:30 PM: environment:
11:08:30 PM: - NEXT_PRIVATE_TARGET
11:08:30 PM: publish: /opt/build/repo/.next
11:08:30 PM: publishOrigin: ui
11:08:30 PM: functions:
11:08:30 PM: "*":
11:08:30 PM: included_files:
11:08:31 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
11:08:31 PM: - api/**
node_bundler: esbuild
functionsDirectory: /opt/build/repo/api
plugins:
- inputs: {}
origin: ui
package: "@netlify/plugin-nextjs"
11:08:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:08:31 PM: Failing build: Failed to build site
11:08:31 PM: Finished processing build request in 33.616s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant