Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing react-calendar returns error #1459

Open
Joshua-Son opened this issue Oct 4, 2024 · 0 comments
Open

importing react-calendar returns error #1459

Joshua-Son opened this issue Oct 4, 2024 · 0 comments

Comments

@Joshua-Son
Copy link

Version

2.1.3
i used yarn add @toast-ui/react-calendar

Test Environment

nextjs and typescript

Current Behavior

// Write example code
import Calander from "@toast-ui/react-calendar"

Expected Behavior


when i try to import React-calandar, my vscode returns this error

Could not find a declaration file for module '@toast-ui/react-calendar'. '/Users/shk/Desktop/NPK/codes/nextjs/nextjs-crm/node_modules/@toast-ui/react-calendar/dist/toastui-react-calendar.mjs' implicitly has an 'any' type.
There are types at '/Users/shk/Desktop/NPK/codes/nextjs/nextjs-crm/node_modules/@toast-ui/react-calendar/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@toast-ui/react-calendar' library may need to update its package.json or typings.ts(7016)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant