I am using the react-datapicker inside of SSR project written in Nest.js and Admin.js. I need to add some React components so I need to import import 'react-datepicker/dist/react-datepicker.css' into the project so that should work properly with proper design. The error is says [Nest] 93478 - 02/12/2022, 12:47:22 PM ERROR [ExceptionsHandler] Unexpected character '@' (Note that you need plugins to import files that are not JavaScript) . I could not find any solution specific to my problem. Is there anyone can help me to solve this issue?
I faced same issue today i copied the all css in react-date-picker and pasted into local css file.
assets: { styles: ['/styles/index.css', '/styles/react-date-picker.css'], scripts: ['/scripts/index.js'], },
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.