react-color icon indicating copy to clipboard operation
react-color copied to clipboard

Module Build Failed Stage-0 preset at fault

Open astericky opened this issue 9 years ago • 3 comments

@casesandberg

ERROR in ./~/react-color/lib/index.js Module build failed: Error: Couldn't find preset "stage-0" relative to directory

I am not sure why this isn't working. I see the dependency right there in the devDependencies. I don't understand what is going on here.

astericky avatar Mar 14 '17 07:03 astericky

+1

mariushop avatar Mar 14 '17 09:03 mariushop

Yes, you need to use Stage 0 to your babel https://babeljs.io/docs/plugins/preset-stage-0/

casesandberg avatar Mar 14 '17 21:03 casesandberg

Does that mean you have to install stage-0 as a dependency in the consuming package? If so, I'd prefer for it to be a peer dependency of react-color, allowing NPM/Yarn to complain when it is missing, instead of having to search inside this issue tracker.

StephanBijzitter avatar Jul 18 '17 12:07 StephanBijzitter