I installed the last version of material-ui.
When I am using Table or LeftNav, I got an error :
ERROR in ./src/complex.jsx
Module build failed: Error: Couldn't find preset "stage-1" relative to directory "/Users/ericraffin/projects/react-training/3-react/src"
at /Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/options/option-manager.js:372:17
at Array.map (native)
at OptionManager.resolvePresets (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:20)
at OptionManager.mergePresets (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/options/option-manager.js:348:10)
at OptionManager.mergeOptions (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/options/option-manager.js:307:14)
at OptionManager.init (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)
at File.initOptions (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/index.js:194:75)
at new File (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/file/index.js:123:22)
at Pipeline.transform (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-core/lib/transformation/pipeline.js:45:16)
at transpile (/Users/ericraffin/projects/react-training/3-react/node_modules/babel-loader/index.js:14:22)
This is probably because there is an issue on the building process.
If I install stage-1 for babel, it works.
That's because you're using babel-preset-stage-1
in your project. Unrelated to this library as it is compiled with the stage 1 transpilations to es5.
This worked for me: npm install babel-preset-stage-1 --save-dev
npm install babel-preset-stage-1 --save-dev
worked for me
Most helpful comment
This worked for me: npm install babel-preset-stage-1 --save-dev