ioof-holdings / redux-subspace

Build decoupled, componentized Redux apps with a single global store
https://ioof-holdings.github.io/redux-subspace/
BSD 3-Clause "New" or "Revised" License
312 stars 33 forks source link

[react-redux-subspace] Couldn't find preset "env" relative to directory #69

Closed Unruly-Coder closed 6 years ago

Unruly-Coder commented 6 years ago

Hey,

When I tried to build my solution I get an error "... /node_modules/react-redux-subspace/lib/index.js: Couldn't find preset "env" relative to directory". Any clue how to deal with it? [react-native]

mpeyper commented 6 years ago

The only thing I can think of is the babel preset. We install it as a dev dependency and define it in our .babelrc for use in our build pipeline, but I wouldn't have thought you would need to install it too.

Are you webpacking (or other bundler) your project and seeing this?

mpeyper commented 6 years ago

I wonder if it's the same as gaearon/redux-thunk#43?

Perhaps we should be excluding the .babelrc file from out npm packages?

Unruly-Coder commented 6 years ago

I think it could be it

mpeyper commented 6 years ago

Yeah, it appears to be a thing. I'll try to get a version out without those for you ASAP.

As a quick and dirty fix, try running npm i -D babel-preset-env and see if that lets the build go through?

mpeyper commented 6 years ago

@Crazy-Ivan Of course, you (or anyone else) are welcome to submit a PR to ignore them if you want to speed it up a bit. Just needs a .babelrc line added to the .npmignore file in each of the packages.

mpeyper commented 6 years ago

@Crazy-Ivan #70 has been published now (v2.2.0). Let me know if it helped.