Skip to content

Multiple errors when running in TS & NextJS 15  #753

@ShayokhShorfuddin

Description

@ShayokhShorfuddin

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 -

  1. Could not find a declaration file for module '@barba/core'
  2. ReferenceError: Element is not defined

Here are the screenshots -
image
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @barba/core@barba/core pluginbugbug to fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions