henripar / react-lite-month-picker

Simple, modern and customizable month picker component for ReactJS.
https://react-lite-month-picker.dev
MIT License
32 stars 10 forks source link

Error on nextjs #6

Open pjatupon opened 1 week ago

pjatupon commented 1 week ago

Could not find a declaration file for module 'react-lite-month-picker'. '/node_modules/react-lite-month-picker/src/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/react-lite-month-picker if it exists or add a new declaration (.d.ts) file containing declare module 'react-lite-month-picker';

ElementaitaStopover commented 19 hours ago

@pjatupon Have you found a solution for this?

As for me I meet with build error, I am a newbie in Nextjs, here is my issue,

Build Error Failed to compile

``Next.js (14.2.13) ./node_modules/react-lite-month-picker/src/components/MonthInput/MonthInput.jsx Module parse failed: Unexpected token (25:4) | | return (

<button

| className={styles.monthInputField} | onClick={() => props.setShowMonthPicker(!props.showMonthPicker)}``