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

Unable to load definition files when using moduleResolution: "bundler" #1398

Open
black7375 opened this issue Jun 2, 2023 · 0 comments
Open

Comments

@black7375
Copy link

Version

@toast-ui/calendar: 2.1.3
@toast-ui/react-calendar: 2.1.3
typescript: 5.0.4

Test Environment

Linux 6.3.5-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:43:47 +0000 x86_64 GNU/Linux

Current Behavior

If typescript setting(tsconfig.json) moduleResolutionto bundler, the following error occurs.

yarn run -T tsc --noEmit

src/App.tsx:2:30 - error TS7016: Could not find a declaration file for module '@toast-ui/react-calendar'. '/home/black7375/scheduler/node_modules/.store/@toast-ui-react-calendar-virtual-6b7ed8151a/node_modules/@toast-ui/react-calendar/dist/toastui-react-calendar.mjs' implicitly has an 'any' type.
  There are types at '/home/black7375/scheduler/apps/calendar/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.

2 import type TUICalendar from "@toast-ui/react-calendar";

Expected Behavior

The module must be able to be found normally when checking of the type checked.

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