Skip to content

Not working with react next js #13

@trompx

Description

@trompx

Hello,

I was using an old version of splittype and recently migrated to next js.
I tried to use your new version import SplitType from 'split-type' but I get the following error:

Server Error
SyntaxError: Unexpected token 'export'

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
external%20%22split-type%22 (1:0) @ eval

> 1 | module.exports = require("split-type");

Any idea how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions