I am getting the following error but only when I try to use the following dependency, otherwise it works fine.
Error:
Module build failed: Error: Couldn't find preset "stage-0" relative to directory
Import causing the issue
import {ActionDone} from "material-ui"
It is part of the react-material-icons npm package. If I remove that import and uses of it everything works fine. What am I missing?
You only need to install babel-preset-stage-0:
Command for this:
npm install --save-dev babel-preset-stage-0
Try installing the stage 0 preset.
Refer to this article: https://babeljs.io/docs/plugins/preset-stage-0/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With