Skip to content

Uncaught SyntaxError: export declarations may only appear at top level of a module #13

Description

@aiw3ndil

Hello!

I'm new to the node world. I have added the package with npm and imported it on a Ruby on Rails 6 application.

When loading the application I'm getting this error on the browser:

Uncaught SyntaxError: export declarations may only appear at top level of a module

I have read the debug and it seems to apply to this part of the code:

export default class extends class{constructor(e,t={},s={})

Is there a way to solve this?

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions