smrsan76 / imrc-datetime-picker

(Improved) React component datetime picker by momentjs :calendar:
https://imrc-datetime-picker.js.org/
MIT License
21 stars 10 forks source link

Failed to compile error. #1

Closed LordBrain closed 5 years ago

LordBrain commented 5 years ago

Describe the bug Getting a failed to compile error.

./node_modules/imrc-datetime-picker/dist/assets/font-icons/font/imrc-datetime-picker-icons.svg
Module build failed: Error: Couldn't find preset "stage-0" relative to directory "/<repo>/node_modules/imrc-datetime-picker"
    at Array.map (<anonymous>)

To Reproduce Steps to reproduce the behavior: Not sure if its just me or something with the library.

  1. Cleared out my node_module folder.
  2. ran yarn install to rebuild the node_module folder.
  3. yarn start to start my server where the compile happens.

Expected behavior To not get a compile error.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information

Additional context Not sure if its a issue on my side, or the module.

LordBrain commented 5 years ago

I think I resolved it by adding babel-stage-0, yarn add babel-preset-stage-0

Nevermind!