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

Removed chokidar from optional dependencies #1072

Closed
wants to merge 1 commit into from
Closed

Removed chokidar from optional dependencies #1072

wants to merge 1 commit into from

Conversation

electerious
Copy link

chokidar is listed under dependencies and optional dependencies, but it's not optional (gets used in node-loaders.js). It's currently not possible to use Nunjucks with npm --no-optional as it will throw an Cannot find module 'chokidar' error.

`chokidar` is listed under dependencies and optional dependencies, but it's not optional (gets used in `node-loaders.js`). It's currently not possible to use Nunjucks with `npm --no-optional` as it will throw an `Cannot find module 'chokidar'` error.
@fdintino
Copy link
Collaborator

Actually, I think this is a regression in 3.1.0. The require for chokidar should be inside a try/catch; I think that would be the appropriate fix.

@fdintino fdintino closed this in 2c97201 Feb 21, 2018
fdintino added a commit to theatlantic/nunjucks-bower that referenced this pull request Feb 23, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants