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

Uncaught TypeError: Cannot define property:__Rewire__, object is not extensible. #24

Open
doxxx opened this issue Aug 19, 2015 · 6 comments

Comments

@doxxx
Copy link

doxxx commented Aug 19, 2015

When I run:

NODE_ENV=development node dev-server ./webpack/config

The browser window pops up but the page that loads is blank and the following be found in the javascript console:

Uncaught TypeError: Cannot define property:__Rewire__, object is not extensible.
(anonymous function) @ routes.jsx:16
(anonymous function) @ routes.jsx:16
(anonymous function) @ routes.jsx:16
__webpack_require__ @ bootstrap ddf5084ccf82e2420949:520
fn @ bootstrap ddf5084ccf82e2420949:75
(anonymous function) @ app.jsx:8
(anonymous function) @ app.jsx:13
(anonymous function) @ app.jsx:13
__webpack_require__ @ bootstrap ddf5084ccf82e2420949:520
fn @ bootstrap ddf5084ccf82e2420949:75
(anonymous function) @ bootstrap ddf5084ccf82e2420949:543
__webpack_require__ @ bootstrap ddf5084ccf82e2420949:520
(anonymous function) @ bootstrap ddf5084ccf82e2420949:543
(anonymous function) @ bootstrap ddf5084ccf82e2420949:543

If I build the app using:

NODE_ENV=production npm run webpack

And then load the resulting build/index.html in the browser, the app works.

Windows 7 using an MSYS Git Bash shell to run the npm/node commands.

@zv3
Copy link

zv3 commented Aug 23, 2015

Same happens under OS X with the react-router branch.

@jasokant
Copy link

@azangru Progress? Thanks for your work on this.

@stukennedy
Copy link

I've got the same issue here; happens when I use react-router in the seed project.

Is there any way to fix this? I'm also able to run the production code, just not development.

@trungdq88
Copy link

I am having the same problem here (OS X, react-router branch).
@badsyntax please take a look at this.

@fredriklaason
Copy link

Quick fix is to remove the rewire plugin parameter in https://github.com/badsyntax/react-seed/blob/feature/react-router/webpack/loaders.js#L49

@juanpasolano
Copy link

Thanks @fredriklaason, that worked for me.

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

7 participants