ioof-holdings / redux-dynamic-reducer

Attach reducers to an existing Redux store
BSD 3-Clause "New" or "Revised" License
68 stars 9 forks source link

Module build failed #5

Closed hebbian closed 6 years ago

hebbian commented 6 years ago

I tried to use this library, in the first run it shows error like this:

ERROR in ./node_modules/redux-dynamic-reducer/lib/index.js Module build failed: Error: Couldn't find preset "env" relative to directory "/Users/hebbian/Developments/reactjs/react-skeleton/node_modules/redux-dynamic-reducer"

What is really happening? Thanks.

mpeyper commented 6 years ago

Hi @hebbian,

We saw the same issue in redux-subspace about a month ago.

Basically, we are including the .babelrc file in our npm package and you are not excluding node_modules from the babel process.

What can be done:

  1. submit a PR ignoring .babelrc
  2. exclude node_modules (assuming webpack)
  3. install babel-preset-env
  4. wait for someone else to do 1. (probably me when I have time)