Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'lex-parser' #14

Open
kylejlin opened this issue Apr 11, 2020 · 0 comments
Open

Error: Cannot find module 'lex-parser' #14

kylejlin opened this issue Apr 11, 2020 · 0 comments

Comments

@kylejlin
Copy link

kylejlin commented Apr 11, 2020

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.

nickserv added a commit to nickserv/ebnf-parser that referenced this issue May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant