Open ckoshien opened 1 year ago
Hello. I tried to import your library into my NextJS project. However, I got the error "Can't resolve 'react-wheelpicker'" in my environment.
NextJS does not allow CSS import outside of "_app.js", so I commented it out once. If you write
import 'react-wheelpicker/dist/index.css'
in "_app.js" separately, the styles are applied.
The prepare command seems to be executed when installing npm, but transpile and build were not executed, so I added them.
prepare
transpile
build
I'm not familiar with publishing npm modules, so I'm sorry if I'm saying something wrong. Thanks for the good library.
Translated with www.DeepL.com/Translator
Hello. I tried to import your library into my NextJS project. However, I got the error "Can't resolve 'react-wheelpicker'" in my environment.
Fixes.
Comment out CSS import.
NextJS does not allow CSS import outside of "_app.js", so I commented it out once. If you write
in "_app.js" separately, the styles are applied.
Fixed missing npm scripts.
The
prepare
command seems to be executed when installing npm, buttranspile
andbuild
were not executed, so I added them.I'm not familiar with publishing npm modules, so I'm sorry if I'm saying something wrong. Thanks for the good library.
Translated with www.DeepL.com/Translator