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
lex-parser should be declared as a dependency instead of a devDependency in package.json.
Since lex-parser is currently declared as a devDependency, it's not being installed when I run npm install --save ebnf-parser.
Consequently, I am getting the following error when I require("ebnf-parser") in my code:
Error: Cannot find module 'lex-parser'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/kyle/tyson/node_modules/ebnf-parser/ebnf-parser.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
Proposed solution
Declare lex-parser as a dependency instead of a devDependency in package.json.
The text was updated successfully, but these errors were encountered:
nickserv
added a commit
to nickserv/ebnf-parser
that referenced
this issue
May 18, 2020
lex-parser
should be declared as a dependency instead of a devDependency inpackage.json
.Since
lex-parser
is currently declared as a devDependency, it's not being installed when I runnpm install --save ebnf-parser
.Consequently, I am getting the following error when I
require("ebnf-parser")
in my code:Proposed solution
Declare
lex-parser
as a dependency instead of a devDependency inpackage.json
.The text was updated successfully, but these errors were encountered: