failed Validating Rendering Engines in strict mode
mvurro opened this issue · 0 comments
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
I'm trying to develop createPages by adding the defer:true attribute in gatsby-node.js, during build I get the following error:
failed Validating Rendering Engines - 0.965s
ERROR #98001 ENGINE.VALIDATION
Built Rendering Engines failed validation.
Please open an issue with a reproduction at https://gatsby.dev/new-issue for more help.
Error: Module build failed (from ./node_modules/gatsby/dist/utils/webpack/loaders/webpack-remove-exports-loader.js) :
SyntaxError: C:\Documents\Projects\Whitehall Reply\dev\mds-np-gatsbydrupal\gatsby-node.js: Assigning to 'arguments' in strict mode. (250:2)
248 | view,
249 | display = 'default',
250 | arguments = [],
| ^
251 | { getNode, cache }
252 | ) => {
253 | const { createNodeId } = require('gatsby/dist/utils/create-node-id ');
I followed the following documentation:
https://www.gatsbyjs.com/docs/reference/rendering-options/deferred-static-generation/
Thank you
Cordial greetings
Reproduction Link
https://github.com/mvurro/Reproduction-Gatsbyjs-Bug
Steps to Reproduce
- npm run clean
- npm run build
...
Expected Result
The build should complete without stric errors
Actual Result
failed Validating Rendering Engines - 0.965s
ERROR #98001 ENGINE.VALIDATION
Built Rendering Engines failed validation.
Please open an issue with a reproduction at https://gatsby.dev/new-issue for more help.
Error: Module build failed (from ./node_modules/gatsby/dist/utils/webpack/loaders/webpack-remove-exports-loader.js) :
SyntaxError: C:\Documenti\Progetti\Whitehall Reply\dev\mds-np-gatsbydrupal\gatsby-node.js: Assigning to 'arguments' in strict mode. (250:2)
248 | view,
249 | display = 'default',
250 | arguments = [],
| ^
251 | { getNode, cache }
252 | ) => {
253 | const { createNodeId } = require('gatsby/dist/utils/create-node-id ');
-
credentials.ts:62 instantiate
[mds-np-gatsbydrupal]/[@babel]/parser/src/parse-error/credentials.ts:62:21 -
parse-error.ts:60 toParseError
[mds-np-gatsbydrupal]/[@babel]/parser/src/parse-error.ts:60:12 -
index.ts:1490 Parser.raise
[mds-np-gatsbydrupal]/[@babel]/parser/src/tokenizer/index.ts:1490:19 -
lval.ts:686 Parser.checkIdentifier
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/lval.ts:686:14 -
lval.ts:615 Parser.checkLVal
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/lval.ts:615:12 -
expression.ts:341 Parser.parseMaybeAssign
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:341:12 -
expression.ts:256 callback
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:256:12 -
expression.ts:3077 Parser.allowInAnd
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:3077:12 -
expression.ts:255 Parser.parseMaybeAssignAllowIn
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:255:17 -
expression.ts:2714 Parser.parseExprListItem
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:2714:18 -
expression.ts:1044 Parser.parseCallExpressionArguments
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:1044:14 -
expression.ts:894 Parser.parseCoverCallAndAsyncArrowHead
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:894:29 -
expression.ts:783 Parser.parseSubscript
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:783:19 -
expression.ts:739 Parser.parseSubscripts
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:739:19 -
expression.ts:724 Parser.parseExprSubscripts
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:724:17 -
expression.ts:695 Parser.parseUpdate
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:695:21 -
expression.ts:657 Parser.parseMaybeUnary
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:657:23 -
expression.ts:395 Parser.parseMaybeUnaryOrPrivate
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:395:14 -
expression.ts:407 Parser.parseExprOps
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:407:23 -
expression.ts:362 Parser.parseMaybeConditional
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:362:23 -
expression.ts:302 Parser.parseMaybeAssign
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:302:21 -
expression.ts:256 callback
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:256:12 -
expression.ts:3072 Parser.allowInAnd
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:3072:16 -
expression.ts:255 Parser.parseMaybeAssignAllowIn
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/expression.ts:255:17 -
statement.ts:1507 Parser.parseVar
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:1507:16 -
statement.ts:1166 Parser.parseVarStatement
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:1166:10 -
statement.ts:537 Parser.parseStatementContent
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:537:21 -
statement.ts:417 Parser.parseStatementLike
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:417:17 -
statement.ts:354 Parser.parseModuleItem
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:354:17 -
statement.ts:1359 Parser.parseBlockOrModuleBlockBody
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:1359:16 -
statement.ts:1333 Parser.parseBlockBody
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:1333:10 -
statement.ts:226 Parser.parseProgram
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:226:10 -
statement.ts:208 Parser.parseTopLevel
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/statement.ts:208:25 -
index.ts:45 Parser.parse
[mds-np-gatsbydrupal]/[@babel]/parser/src/parser/index.ts:45:10 -
index.ts:67 parse
[mds-np-gatsbydrupal]/[@babel]/parser/src/index.ts:67:38 -
index.ts:28 parser
[mds-np-gatsbydrupal]/[@babel]/core/src/parser/index.ts:28:19 -
parser.next
-
normalize-file.ts:51 normalizeFile
[mds-np-gatsbydrupal]/[@babel]/core/src/transformation/normalize-file.ts:51:24 -
normalizeFile.next
-
index.ts:38 run
[mds-np-gatsbydrupal]/[@babel]/core/src/transformation/index.ts:38:36 -
run.next
-
transform.ts:29 transform
[mds-np-gatsbydrupal]/[@babel]/core/src/transform.ts:29:20 -
transform.next
-
index.js:261 step
[mds-np-gatsbydrupal]/[gensync]/index.js:261:32 -
index.js:273
[mds-np-gatsbydrupal]/[gensync]/index.js:273:13 -
index.js:223 async.call.result.err.err
[mds-np-gatsbydrupal]/[gensync]/index.js:223:11 -
index.js:189 cb
[mds-np-gatsbydrupal]/[gensync]/index.js:189:28 -
async.ts:90
[mds-np-gatsbydrupal]/[@babel]/core/src/gensync-utils/async.ts:90:7 -
index.js:113
[mds-np-gatsbydrupal]/[gensync]/index.js:113:33 -
index.js:287 step
[mds-np-gatsbydrupal]/[gensync]/index.js:287:14 -
index.js:305418 Object.
C:/Documenti/Progetti/Whitehall Reply/dev/mds-np-gatsbydrupal/.cache/query-engine/index.js:305418:7
not finished Running gatsby.IMAGE_CDN jobs - 251.792s
not finished Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 116.629s
Environment
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (123.0.2420.97)
npmPackages:
gatsby: ^5.10.0 => 5.10.0
gatsby-plugin-breadcrumb: ^12.3.1 => 12.3.2
gatsby-plugin-breakpoints: ^1.3.10 => 1.3.10
gatsby-plugin-buildtime-timezone: ^1.0.3 => 1.0.3
gatsby-plugin-catch-links: ^5.10.0 => 5.10.0
gatsby-plugin-image: ^3.10.0 => 3.10.0
gatsby-plugin-react-svg: ^3.3.0 => 3.3.0
gatsby-plugin-sass: ^6.10.0 => 6.10.0
gatsby-plugin-schema-snapshot: ^4.10.0 => 4.10.0
gatsby-plugin-sharp: ^5.10.0 => 5.10.0
gatsby-plugin-sitemap: ^6.11.0 => 6.11.0
gatsby-plugin-styled-components: ^6.13.1 => 6.13.1
gatsby-source-drupal: ^6.13.1 => 6.13.1
gatsby-source-filesystem: ^5.10.0 => 5.13.1
gatsby-transformer-sharp: ^5.10.0 => 5.10.0
Config Flags
No response