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

Fixes error when running webpack #2

Closed
wants to merge 1 commit into from

Conversation

javiercr
Copy link

Steps to reproduce:

  • Clone the repo
  • Do npm install

You'll get:

> webpack --progress --colors

 10% 0/1 build modulesTypeError: Cannot read property 'visitClass' of undefined
    at monkeypatch (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/babel-eslint/index.js:199:40)
    at Object.exports.parse (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/babel-eslint/index.js:410:5)
    at parse (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint/lib/eslint.js:452:27)
    at EventEmitter.module.exports.api.verify (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint/lib/eslint.js:604:15)
    at processText (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint/lib/cli-engine.js:231:23)
    at CLIEngine.executeOnText (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint/lib/cli-engine.js:371:26)
    at lint (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint-loader/index.js:26:20)
    at Object.module.exports (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/eslint-loader/index.js:120:7)
    at WEBPACK_CORE_LOADER_EXECUTION (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/webpack-core/lib/NormalModuleMixin.js:155:71)
    at runSyncOrAsync (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/webpack-core/lib/NormalModuleMixin.js:155:93)
    at nextLoader (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)
    at /Users/javi/Sites/temp/react-google-places-suggest/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
    at Storage.finished (/Users/javi/Sites/temp/react-google-places-suggest/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
    at /Users/javi/Sites/temp/react-google-places-suggest/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:404:3)

This is caused by a problem with babel-eslint. This PR implements the solution suggested here.

Error was:
10% 0/1 build modulesTypeError: Cannot read property 'visitClass' of undefined
@cedricdelpoux
Copy link
Owner

I close this PR because I don't use webpack anymore

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.

2 participants