Multiple errors when running in TS & NextJS 15
Author: ShayokhShorfuddinCreated Dec 19, 2024Updated Dec 19, 2024
Labelsbug@barba/core
What version are you using?
2.10.3
What package are you using?
@barba/core
Describe your issue
Hello. I am trying to learn and add BarbaJS to a NextJS 15 project. I was mostly looking for tutorials from YouTube and Barba Docs. However, I discovered that BarbaJS doesn't seem to work properly in TypeScript. I got multiple errors when I tried to implement it in a TSX component. These errors are -
- Could not find a declaration file for module '@barba/core'
- ReferenceError: Element is not defined
Here are the screenshots -
Here is the current broken repo that includes these issues - https://github.com/ShayokhShorfuddin/broken-barba-project
Please take a look into the issue. Thanks in advance.
Source: barbajs/barba