Jamie Hutber
Jamie Hutber

Reputation: 28126

Using react and webpack: use the non-minified dev environment

I am using webpack to test a new plugin of mobiscroll as I am getting an error and needed to make sure it wasn't my set up.

However now I get the error that implies (at least from searching) that I am using browserify.

react-with-addons.min.js:16 
    Uncaught Error: 
      Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.

I have put it up on github for people to checkout and test:

https://github.com/jamiehutber/mobiscroll-webpack

things I have done already

set NODE_ENV=development //set in my npm start script and also set manually before running npm start

How can i stop this error?

Upvotes: 0

Views: 3330

Answers (1)

cgatian
cgatian

Reputation: 22994

Youre adding react-dom in the index.html

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-with-addons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>

And you're also including it with Webpack in index.js. Remove these from index.html

Upvotes: 2

Related Questions