Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

neutrino --inspect throws an error #1167

Closed
helfi92 opened this issue Oct 11, 2018 · 2 comments
Closed

neutrino --inspect throws an error #1167

helfi92 opened this issue Oct 11, 2018 · 2 comments

Comments

@helfi92
Copy link
Member

helfi92 commented Oct 11, 2018

Bug

  • What version of Neutrino are you using?
    v9
  • Are you using the Yarn client or the npm client? What version?
    yarn, v1.10.1
  • What version of Node.js are you using?
    v8.10
  • What operating system are you using?
    macOS High Sierra
  • What did you do?
    Attempt to migrate to neutrino v9
  • What did you expect to happen?
    neutrino --inspect --mode development to work.
  • What actually happened, contrary to your expectations?
    neutrino --inspect --mode development throws the following error:
➜  taskcluster-web git:(neutrino-v9) ✗ neutrino --inspect --mode development
/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Plugin.js:11
      this.init((Plugin, args = []) => new Plugin(...args));
                                       ^

TypeError: Plugin is not a constructor
    at init (/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Plugin.js:11:40)
    at Object.toConfig (/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Plugin.js:42:22)
    at clean.Object.assign.plugins.plugins.values.map.plugin (/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Config.js:125:61)
    at Array.map (<anonymous>)
    at module.exports.toConfig (/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Config.js:125:40)
    at module.exports.toString (/Users/haali/Documents/Mozilla/projects/neutrino-dev/node_modules/webpack-chain/src/Config.js:137:41)
    at Object.output (/Users/haali/Documents/Mozilla/projects/neutrino-dev/packages/neutrino/index.js:27:37)
    at Object.<anonymous> (/Users/haali/Documents/Mozilla/projects/neutrino-dev/packages/neutrino/bin/neutrino.js:9:20)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
@edmorley
Copy link
Member

I believe this is because of a stale globally linked copy of development neutrino:
taskcluster/taskcluster-web#157 (comment)

@edmorley
Copy link
Member

Closing since this was due to a an out of date globally linked copy of Neutrino:
taskcluster/taskcluster-web#157 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants