Jump to content
Search Community

Regstering TextPlugin in Next.js

seven test
Moderator Tag

Go to solution Solved by elegantseagulls,

Recommended Posts

Hi, How do I register plugins in next? I try the way from sandbox, also tried in useEffect, but all i get is error: 

SyntaxError: Cannot use import statement outside a module

This error happened while generating the page. Any console logs will be displayed in the terminal window.
 
 
edit: in the console I have strange import like it was trying to import somethinf from my files which is not there
import { emojiSafeSplit, getText, splitInnerHTML } from "./utils/strings.js";
 
Thanks!

Screenshot 2021-07-09 at 15.52.32.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...