rizowski / eslint-watch

ESLint with simple watching capabilities
https://www.npmjs.com/package/eslint-watch
MIT License
196 stars 29 forks source link

Missing Module #158

Closed aedryan closed 5 years ago

aedryan commented 5 years ago

Environment

Basic Description of the problem

When running eslint watch I get an error about a missing module:

Error: Cannot find module 'lodash.debounce'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\repositories\silk-react-components\node_modules\eslint-watch\src\events\watch\index.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

I believe this dev dependency needs to be in dependencies.

How to reproduce it

  1. Command: esw path/to/some/js
rizowski commented 5 years ago

I'll have a fix out shortly. I immediately published out a fix but I think something went wrong with the publish for v5.1.1. v5.1.2 will be the corrected version.

rizowski commented 5 years ago

v5.1.2 is now published. This should now be fixed. Sorry for the inconvenience.

aedryan commented 5 years ago

Thanks for the quick fix!