JedWatson / react-input-autosize

Auto-resizing input field for React
https://jedwatson.github.io/react-input-autosize
MIT License
769 stars 178 forks source link

Couldn't find preset "es2015" relative to directory #142

Open joetidee opened 6 years ago

joetidee commented 6 years ago

Seem to getting this error when trying to build my application:

ERROR in ./node_modules/react-input-autosize/lib/AutosizeInput.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Couldn't find preset "es2015" relative to directory "/Users/joe/Sources/tidee-life/packages/tidee-life-ui/node_modules/react-input-autosize" at /Users/joe/Sources/tidee-life/packages/tidee-life-ui/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19 at Array.map ()

I'm not using the react-input-autosize package directly and believe that it is being used by react-select that I am using (i have installed v1.3.0). I have removed all of my babel-preset-2015 dependencies in my project and am using the babel-preset-env instead.

Not sure what to do to resolve this issue (?)

matthewwolfe commented 6 years ago

@joetidee https://github.com/JedWatson/react-input-autosize/pull/133