-
Notifications
You must be signed in to change notification settings - Fork 6
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
SyntaxError: Unexpected token 'export' #40
Comments
Thanks for pointing this issue out. You are looking for a CJS build which is currently not available, but should be. I'll have to publish a new version of In the meantime, you can try using transpileModules from Next.js. and add |
Ok! thank you so much! |
Since Your approach seems standard for Next.js apps. You could also load this package dynamically. |
Ok, thank you! |
Thank you for creating this package!
I ran into this error whenever I refresh/re-render the webpage:
The error leads to this:
My code:
I'm using Next js & the latest tts-react.
It works again when I hide/unhide my TextToSpeech code, but throws the same error when I refresh the page.
Thank you!
The text was updated successfully, but these errors were encountered: