[Help]: Cannot find module 'embla-carousel/components/Engine' or its corresponding type declarations.ts(2307) #732
-
SummaryHi , I'm a newbie programmer and using Embla Carousel pre-defined example: Infinite Scroll. Issue: It gives this typescript error: The path 'embla-carousel/components/Engine' doesn't seem to exist. If applicable, which variants of Embla Carousel are relevant to this question?
Additional informationimport { EngineType } from 'embla-carousel/components/Engine'
It gives this typescript error:
Cannot find module 'embla-carousel/components/Engine' or its corresponding type declarations.ts(2307)
Package.json:
{
"name": "carousel",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@types/node": "20.11.13",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"embla-carousel-react": "^8.0.0-rc22",
"eslint": "8.56.0",
"eslint-config-next": "14.1.0",
"next": "14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.3.3"
}
} CodeSandbox exampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @imeite. Thanks for your question. Could your problem be related to this perhaps? Best, |
Beta Was this translation helpful? Give feedback.
Hi @imeite.
Thanks for your question. Could your problem be related to this perhaps?
Best,
David