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

Error while loading rule 'react/no-multi-comp': Can't add property react, object is not extensible #538

Closed
leolelego opened this issue Nov 20, 2015 · 4 comments

Comments

@leolelego
Copy link
Collaborator

Yop,
Because I'm a good beta tester :
I can't make a npm start, I'have got this error with a new clone of your code or my fork :

[7:53:24 PM] [webpack] ✓ build is now VALID
webpack built 1e9eb162f745a697ccfb in 1022ms
Hash: 1e9eb162f745a697ccfb
Version: webpack 1.12.6
Time: 1022ms
chunk    {0} statinamic-client.js (statinamic-client) 7.64 kB [rendered]

ERROR in ./scripts/index-client.js
Module build failed: TypeError: Error while loading rule 'react/no-multi-comp': Can't add property react, object is not extensible
    at Function.componentRule (/Users/leo/Temporary/putaindecode.io/node_modules/eslint-plugin-react/lib/util/Components.js:111:17)
    at /Users/leo/Temporary/putaindecode.io/node_modules/eslint/lib/eslint.js:692:28
    at Array.forEach (native)
    at EventEmitter.module.exports.api.verify (/Users/leo/Temporary/putaindecode.io/node_modules/eslint/lib/eslint.js:671:16)
    at processText (/Users/leo/Temporary/putaindecode.io/node_modules/eslint/lib/cli-engine.js:230:27)
    at CLIEngine.executeOnText (/Users/leo/Temporary/putaindecode.io/node_modules/eslint/lib/cli-engine.js:686:26)
    at lint (/Users/leo/Temporary/putaindecode.io/node_modules/eslint-loader/index.js:26:20)
    at Object.module.exports (/Users/leo/Temporary/putaindecode.io/node_modules/eslint-loader/index.js:127:7)
 @ multi statinamic-client

Good luck !

It can be a good idea for you to get a VM with a nude install of the OS to retry all process on your side.

@magsout
Copy link
Collaborator

magsout commented Nov 20, 2015

OK I can reproduce your error.

@MoOx
Copy link
Member

MoOx commented Nov 20, 2015

Weird, because it's ok on Travis-CI.
Since it looks like an eslint issue, it might be related to a recent update (1.10.0 just came out).
What are your version of eslint guys?

@MoOx
Copy link
Member

MoOx commented Nov 20, 2015

So just rollback to eslint 1.9.x for now => jsx-eslint/eslint-plugin-react#323

@MoOx MoOx changed the title ERROR in ./scripts/index-client.js Error while loading rule 'react/no-multi-comp': Can't add property react, object is not extensible Nov 20, 2015
@magsout
Copy link
Collaborator

magsout commented Nov 20, 2015

yes due to eslint. Works now

@MoOx MoOx closed this as completed in 92a5901 Nov 21, 2015
Nyalab pushed a commit that referenced this issue Feb 17, 2016
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

No branches or pull requests

3 participants