Skip to content

TypeError: Cannot read property 'visitClass' of undefined #95

Description

@paulyoung

I'm experiencing the following issue.

~/git/BlessCSS/bless (master=)$ rm node_modules/
~/git/BlessCSS/bless (master=)$ npm install
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

> fsevents@1.0.8 install /Users/paulyoung/git/BlessCSS/bless/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/paulyoung/git/BlessCSS/bless/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node" is installed via remote

> bless@4.0.0 prepublish /Users/paulyoung/git/BlessCSS/bless
> npm run test && npm run build


> bless@4.0.0 test /Users/paulyoung/git/BlessCSS/bless
> ./run-tests

> npm run lint


> bless@4.0.0 lint /Users/paulyoung/git/BlessCSS/bless
> eslint ./

TypeError: Cannot read property 'visitClass' of undefined
    at monkeypatch (/Users/paulyoung/git/BlessCSS/bless/node_modules/babel-eslint/index.js:199:40)
    at Object.exports.parse (/Users/paulyoung/git/BlessCSS/bless/node_modules/babel-eslint/index.js:410:5)
    at parse (/Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/eslint.js:449:27)
    at EventEmitter.module.exports.api.verify (/Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/eslint.js:603:15)
    at processText (/Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/cli-engine.js:201:27)
    at processFile (/Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/cli-engine.js:226:12)
    at /Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/cli-engine.js:322:26
    at /Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/util/traverse.js:61:17
    at Array.forEach (native)
    at traverse (/Users/paulyoung/git/BlessCSS/bless/node_modules/eslint/lib/util/traverse.js:41:54)

npm ERR! Darwin 15.3.0
npm ERR! argv "/Users/paulyoung/.nvm/versions/v5.0.0/bin/node" "/Users/paulyoung/.nvm/versions/v5.0.0/bin/npm" "run" "lint"
npm ERR! node v5.0.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! bless@4.0.0 lint: `eslint ./`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bless@4.0.0 lint script 'eslint ./'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bless package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint ./
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bless
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bless
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/paulyoung/git/BlessCSS/bless/npm-debug.log
{ code: 1, message: '`npm run lint` failed with code 1' }

npm ERR! Darwin 15.3.0
npm ERR! argv "/Users/paulyoung/.nvm/versions/v5.0.0/bin/node" "/Users/paulyoung/.nvm/versions/v5.0.0/bin/npm" "run" "test"
npm ERR! node v5.0.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! bless@4.0.0 test: `./run-tests`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bless@4.0.0 test script './run-tests'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bless package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./run-tests
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bless
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bless
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/paulyoung/git/BlessCSS/bless/npm-debug.log

npm ERR! Darwin 15.3.0
npm ERR! argv "/Users/paulyoung/.nvm/versions/v5.0.0/bin/node" "/Users/paulyoung/.nvm/versions/v5.0.0/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! bless@4.0.0 prepublish: `npm run test && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bless@4.0.0 prepublish script 'npm run test && npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bless package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run test && npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bless
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bless
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/paulyoung/git/BlessCSS/bless/npm-debug.log
~/git/BlessCSS/bless (master %=)$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions