New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Super expression must either be null or a function On Nextjs 13 #164
Comments
Are you using the appDir beta features? I had the same issue, I wrapped the Typewriter component and added |
Can you elaborate please what exactly to do. I am facing the same issue. |
You can see a working example here https://stackoverflow.com/questions/74614922/super-expression-must-either-be-null-or-a-function-nextjs-13 |
Thank you! It works now! |
Has anybody found a way to do this without the client directive? It forces my index page to be a client component even if i do it in a closed off component with the client directive and this breaks my application |
Getting above error by using simple example given.
import Typewriter from "typewriter-effect";
<Typewriter
onInit={(typewriter) => {
typewriter
.typeString("Hello World!")
.callFunction(() => {
console.log("String typed out!");
})
.pauseFor(2500)
.deleteAll()
.callFunction(() => {
console.log("All strings were deleted");
})
.start();
}}
/>
The text was updated successfully, but these errors were encountered: