sahilverma2209 / react-wheelpicker

A simple React component which brings wheel-picker to the web!
23 stars 13 forks source link

fix: missing npm scripts #29

Open ckoshien opened 1 year ago

ckoshien commented 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.

Fixes.

Comment out CSS import.

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.

Fixed missing npm scripts.

The prepare command seems to be executed when installing npm, but transpile and build 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