ioof-holdings/redux-subspace

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

Crazy-Ivan opened this issue · 6 comments

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]

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?

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

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

I think it could be it

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?

@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.

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