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
Trying to use the tool in a standard Node.js environment. It is a common thing that files start with a shebang (#!/usr/bin/env node). This cause parse error when the code is being loaded by esprima:
at ErrorHandler.constructError (<PATH>\node_modules\esprima\dist\esprima.js:5012:22)
at ErrorHandler.createError (<PATH>\node_modules\esprima\dist\esprima.js:5028:27)
at ErrorHandler.throwError (<PATH>\node_modules\esprima\dist\esprima.js:5035:21)
at Scanner.throwUnexpectedToken (<PATH>\node_modules\esprima\dist\esprima.js:5164:35)
at Scanner.scanPunctuator (<PATH>\node_modules\esprima\dist\esprima.js:5667:19)
at Scanner.lex (<PATH>\node_modules\esprima\dist\esprima.js:6264:22)
at Parser.nextToken (<PATH>\node_modules\esprima\dist\esprima.js:2079:34)
at new Parser (<PATH>\node_modules\esprima\dist\esprima.js:1916:15)
at parse (<PATH>\node_modules\esprima\dist\esprima.js:120:19)
at Object.parseModule (<PATH>\node_modules\esprima\dist\esprima.js:139:13)
index: 0,
lineNumber: 1,
description: 'Unexpected token ILLEGAL' }
EDIT: As I see, this is already implemented, we should update the package on npm to handle this issue.
The text was updated successfully, but these errors were encountered:
Trying to use the tool in a standard Node.js environment. It is a common thing that files start with a shebang (#!/usr/bin/env node). This cause parse error when the code is being loaded by esprima:
EDIT: As I see, this is already implemented, we should update the package on npm to handle this issue.
The text was updated successfully, but these errors were encountered: