failed Validating Rendering Engines in strict mode #38973
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
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',
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
...
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',
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
Config Flags
No response
The text was updated successfully, but these errors were encountered: