Material-ui: Error when using Table and LeftNav : babel-preset-stage-1 required

Created on 4 Apr 2016  路  3Comments  路  Source: mui-org/material-ui

Problem Description

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.

Versions

  • Material-UI: HEAD

Most helpful comment

This worked for me: npm install babel-preset-stage-1 --save-dev

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joewalker picture joewalker  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

newoga picture newoga  路  3Comments

mb-copart picture mb-copart  路  3Comments

reflog picture reflog  路  3Comments