sojinantony01 / react-cron-generator

Simple react component to generate cron expressions
MIT License
78 stars 62 forks source link

Global CSS cannot be imported from within node_modules. For nextjs #31

Closed sfc-gh-vchandran closed 2 years ago

sfc-gh-vchandran commented 2 years ago

I am using nextjs. On implementing cron, I am getting the error

./node_modules/react-cron-generator/dist/cron-builder.css Global CSS cannot be imported from within node_modules. Read more: https://nextjs.org/docs/messages/css-npm Location: node_modules/react-cron-generator/dist/cron.js

sojinantony01 commented 2 years ago

@sfc-gh-vchandran Thanks for reporting this issue. If Global CSS cannot be imported from within node_modules in nextJS please download the CSS file from this repository and add it to your project and import CSS file as a normal CSS file in your project

CSS file link https://github.com/sojinantony01/react-cron-generator/blob/master/src/lib/cron-builder.css