'module' is not defined

When running npm run lint:js after running ember new quick-start for a new ember application. I receive these errors:

  error  'module' is not defined  no-undef

✖ 1 problem (1 error, 0 warnings)

npm ERR! errno 1
npm ERR! ember-quickstart@0.0.0 lint:js: `eslint .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ember-quickstart@0.0.0 lint:js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\651\AppData\Roaming\npm-cache\_logs\2018-11-08T21_26_11_809Z- 
1 Like

I suspect they forgot to put the “.eslintrc.js” into “.eslintrc.js → overrides → files” array

This is very similar to an error I got with ember-froala-editor. If you look a bit farther down, does it mention something about “sane specifies a missing dependency fsevents”? Seemed to be the root of the problem but I couldn’t figure it out and rolled back. :frowning:


FYI, ember-cli 3.5.1 has the fix for this: https://github.com/ember-cli/ember-cli/releases/tag/v3.5.1 (first " Community Contributions", #8127)

1 Like