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 "gatsby-plugin-decap-cms" #911

Open
AlexImage opened this issue Feb 23, 2024 · 0 comments
Open

error "gatsby-plugin-decap-cms" #911

AlexImage opened this issue Feb 23, 2024 · 0 comments

Comments

@AlexImage
Copy link

Bug report

4:20:23 PM: Netlify Build
4:20:23 PM: ────────────────────────────────────────────────────────────────
4:20:23 PM: ​
4:20:23 PM: ❯ Version
4:20:23 PM: @netlify/build 29.36.0
4:20:23 PM: ​
4:20:23 PM: ❯ Flags
4:20:23 PM: baseRelDir: true
4:20:23 PM: buildId: 65d89b4bffa1690523daaa42
4:20:23 PM: deployId: 65d89b4bffa1690523daaa44
4:20:23 PM: ​
4:20:23 PM: ❯ Current directory
4:20:23 PM: /opt/build/repo
4:20:23 PM: ​
4:20:23 PM: ❯ Config file
4:20:23 PM: /opt/build/repo/netlify.toml
4:20:23 PM: ​
4:20:23 PM: ❯ Context
4:20:23 PM: production
4:20:23 PM: ​
4:20:23 PM: ❯ Installing plugins
4:20:23 PM: - @netlify/[email protected]
4:20:37 PM: ​
4:20:37 PM: ❯ Loading plugins
4:20:37 PM: - @netlify/[email protected] from Netlify app
4:20:38 PM: ​
4:20:38 PM: @netlify/plugin-gatsby (onPreBuild event)
4:20:38 PM: ────────────────────────────────────────────────────────────────
4:20:38 PM: ​
4:20:38 PM: No Gatsby cache found. Building fresh.
4:20:38 PM: ​
4:20:38 PM: (@netlify/plugin-gatsby onPreBuild completed in 64ms)
4:20:38 PM: ​
4:20:38 PM: build.command from netlify.toml
4:20:38 PM: ────────────────────────────────────────────────────────────────
4:20:38 PM: ​
4:20:38 PM: $ npm run build
4:20:38 PM: > [email protected] build /opt/build/repo
4:20:38 PM: > npm run clean && gatsby build
4:20:39 PM: > [email protected] clean /opt/build/repo
4:20:39 PM: > gatsby clean
4:20:39 PM: info Deleting .cache, public, /opt/build/repo/node_modules/.cache/babel-loader, /opt/build/repo/node_modules/.cache/terser-webpack-plugin
4:20:39 PM: info Successfully deleted directories
4:20:42 PM: success compile gatsby files - 0.943s
4:20:42 PM: success load gatsby config - 0.017s
4:20:42 PM: success load plugins - 0.573s
4:20:42 PM: warning gatsby-plugin-react-helmet: Gatsby now has built-in support for modifying the document head. Learn more at https://gatsby.dev/gatsby-head
4:20:42 PM: success onPreInit - 0.004s
4:20:42 PM: success initialize cache - 0.042s
4:20:42 PM: success copy gatsby files - 0.067s
4:20:42 PM: success Compiling Gatsby Functions - 0.147s
4:20:42 PM: success onPreBootstrap - 0.154s
4:20:43 PM: success createSchemaCustomization - 0.008s
4:20:44 PM: success Checking for changed pages - 0.000s
4:20:44 PM: success source and transform nodes - 0.990s
4:20:45 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
4:20:45 PM: success building schema - 1.603s
4:20:46 PM: success createPages - 0.205s
4:20:46 PM: success createPagesStatefully - 0.495s
4:20:46 PM: info Total nodes: 135, SitePage nodes: 20 (use --verbose for breakdown)
4:20:46 PM: success Checking for changed pages - 0.000s
4:20:46 PM: success onPreExtractQueries - 0.000s
4:20:51 PM: success extract queries from components - 4.887s
4:20:51 PM: success write out redirect data - 0.002s
4:20:51 PM: success onPostBootstrap - 0.001s
4:20:51 PM: info bootstrap finished - 11.791s
4:20:51 PM: success write out requires - 0.004s
4:20:55 PM: warning isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration
4:20:55 PM: at isModuleDeclaration (/opt/build/repo/node_modules/@babel/types/lib/validators/generated/index.js:2748:35)
4:20:55 PM: at PluginPass.Program (/opt/build/repo/node_modules/babel-plugin-lodash/lib/index.js:102:44)
4:21:15 PM: error "gatsby-plugin-decap-cms" threw an error while running the onCreateWebpackConfig lifecycle:
4:21:15 PM: decap-cms-app.js from Terser plugin
4:21:15 PM: Cannot read property "TYPE" of undefined
4:21:15 PM: TypeError: Cannot read property "TYPE" of undefined
4:21:15 PM: at shallow_cmp (/opt/build/repo/node_modules/terser/dist/bundle.min.js:11252:33)
4:21:15 PM: at equivalent_to (/opt/build/repo/node_modules/terser/dist/bundle.min.js:11257:10)
4:21:15 PM: at AST_Number.equivalent_to (/opt/build/repo/node_modules/terser/dist/bundle.min.js:18771:12)
4:21:15 PM: at /opt/build/repo/node_modules/terser/dist/bundle.min.js:20979:45
4:21:15 PM: at AST_Binary.optimize (/opt/build/repo/node_modules/terser/dist/bundle.min.js:18732:19)
4:21:15 PM: at Compressor.before (/opt/build/repo/node_modules/terser/dist/bundle.min.js:18710:24)
4:21:15 PM: at AST_Binary.transform (/opt/build/repo/node_modules/terser/dist/bundle.min.js:6864:41)
4:21:15 PM: at /opt/build/repo/node_modules/terser/dist/bundle.min.js:7018:29
4:21:15 PM: at Compressor.before (/opt/build/repo/node_modules/terser/dist/bundle.min.js:18705:9)
4:21:15 PM: at AST_Assign.transform (/opt/build/repo/node_modules/terser/dist/bundle.min.js:6864:41)
4:21:15 PM:
4:21:15 PM:
4:21:15 PM: Error: decap-cms-app.js from Terser plugin
4:21:15 PM: Cannot read property "TYPE" of undefined
4:21:15 PM: TypeError: Cannot read property "TYPE" of undefined
4:21:15 PM:
4:21:15 PM: - bundle.min.js:11252 shallow_cmp
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:11252:33
4:21:15 PM:
4:21:15 PM: - bundle.min.js:11257 equivalent_to
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:11257:10
4:21:15 PM:
4:21:15 PM: - bundle.min.js:18771 AST_Number.equivalent_to
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:18771:12
4:21:15 PM:
4:21:15 PM: - bundle.min.js:20979
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:20979:45
4:21:15 PM:
4:21:15 PM: - bundle.min.js:18732 AST_Binary.optimize
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:18732:19
4:21:15 PM:
4:21:15 PM: - bundle.min.js:18710 Compressor.before
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:18710:24
4:21:15 PM:
4:21:15 PM: - bundle.min.js:6864 AST_Binary.transform
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:6864:41
4:21:15 PM:
4:21:15 PM: - bundle.min.js:7018
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:7018:29
4:21:15 PM:
4:21:15 PM: - bundle.min.js:18705 Compressor.before
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:18705:9
4:21:15 PM:
4:21:15 PM: - bundle.min.js:6864 AST_Assign.transform
4:21:15 PM: [repo]/[terser]/dist/bundle.min.js:6864:41
4:21:15 PM:
4:21:15 PM: - index.js:266 Function.buildError
4:21:15 PM: [repo]/[terser-webpack-plugin]/dist/index.js:266:20
4:21:15 PM:
4:21:15 PM: - index.js:455
4:21:15 PM: [repo]/[terser-webpack-plugin]/dist/index.js:455:26
4:21:15 PM:
4:21:15 PM:
4:21:15 PM: not finished Building production JavaScript and CSS bundles - 23.585s
4:21:15 PM: npm ERR! code ELIFECYCLE
4:21:15 PM: npm ERR! errno 1
4:21:15 PM: npm ERR! [email protected] build: npm run clean && gatsby build
4:21:15 PM: npm ERR! Exit status 1
4:21:15 PM: npm ERR!
4:21:15 PM: npm ERR! Failed at the [email protected] build script.
4:21:15 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
4:21:15 PM: npm ERR! A complete log of this run can be found in:
4:21:15 PM: npm ERR! /opt/buildhome/.npm/_logs/2024-02-23T13_21_15_878Z-debug.log
4:21:16 PM: ​
4:21:16 PM: "build.command" failed
4:21:16 PM: ────────────────────────────────────────────────────────────────
4:21:16 PM: ​
4:21:16 PM: Error message
4:21:16 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
4:21:16 PM: ​
4:21:16 PM: Error location
4:21:16 PM: In build.command from netlify.toml:
4:21:16 PM: npm run build
4:21:16 PM: ​
4:21:16 PM: Resolved config
4:21:16 PM: build:
4:21:16 PM: command: npm run build
4:21:16 PM: commandOrigin: config
4:21:16 PM: environment:
4:21:16 PM: - NODE_VERSION
4:21:16 PM: - YARN_VERSION
4:21:16 PM: - YARN_FLAGS
4:21:16 PM: publish: /opt/build/repo/public
4:21:16 PM: publishOrigin: config
4:21:16 PM: functionsDirectory: /opt/build/repo/netlify/functions
4:21:16 PM: plugins:
4:21:16 PM: - inputs: {}
4:21:16 PM: origin: ui
4:21:16 PM: package: "@netlify/plugin-gatsby"
4:21:16 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:21:16 PM: Failing build: Failed to build site
4:21:17 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
4:21:17 PM: Finished processing build request in 1m57.881s

What is the current behavior?

изображение

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Other relevant information:

Node.js version:
NPM/Yarn version
Operating System:
Additional tools:

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