You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Esprima is failing to parse code that uses the spread operator:
ERROR in ./node_modules/ajv/dist/core.js
Line 76: Unexpected token ...
Error: Line 76: Unexpected token ...
at ErrorHandler.constructError (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:5012:22)
at ErrorHandler.createError (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:5028:27)
at Parser.unexpectedTokenError (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:1985:39)
at Parser.throwUnexpectedToken (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:1995:21)
at Parser.parseObjectPropertyKey (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2499:33)
at Parser.parseObjectProperty (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2534:25)
at Parser.parseObjectInitializer (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2602:35)
at Parser.inheritCoverGrammar (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2285:37)
at Parser.parsePrimaryExpression (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2354:38)
at Parser.inheritCoverGrammar (/workspaces/Tiller Scheduled Transactions/node_modules/esprima/dist/esprima.js:2285:37)
CodeGenerationError: Line 76: Unexpected token ...
at /workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Compilation.js:3330:18
at /workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Cache.js:93:5
at Hook.eval [as callAsync] (eval at create (/workspaces/Tiller Scheduled Transactions/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Cache.get (/workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Cache.js:75:18)
at ItemCacheFacade.get (/workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/CacheFacade.js:111:15)
at Compilation._codeGenerationModule (/workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Compilation.js:3314:9)
at /workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Compilation.js:3221:11
at arrayIterator (/workspaces/Tiller Scheduled Transactions/node_modules/neo-async/async.js:3467:9)
at done (/workspaces/Tiller Scheduled Transactions/node_modules/neo-async/async.js:3527:9)
at /workspaces/Tiller Scheduled Transactions/node_modules/webpack/lib/Compilation.js:3235:8
@ ./node_modules/ajv/dist/ajv.js 4:15-32
@ ./src/reconciliation/input/parse.ts 7:30-44
@ ./src/reconciliation/index.ts 24:16-40
@ ./src/main.ts 23:25-52
This started happening after I upgraded my project to use AJV 8.9.0. That version apparently uses the ellipsis/spread operator in the code it ships in its NPM package. Usages of the spread operator in my own code seem to be unaffected. Since then, I'm unable to build my project, because this parse error causes the webpack build to fail.
The text was updated successfully, but these errors were encountered:
It seems that Esprima is failing to parse code that uses the spread operator:
This started happening after I upgraded my project to use AJV 8.9.0. That version apparently uses the ellipsis/spread operator in the code it ships in its NPM package. Usages of the spread operator in my own code seem to be unaffected. Since then, I'm unable to build my project, because this parse error causes the webpack build to fail.
The text was updated successfully, but these errors were encountered: