We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug In next.js (Client Component) it is throwing error on Build time.
Error Message: export { default as a11yDark } from './a11y-dark'; SyntaxError: Unexpected token 'export'
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Same thing here!
Sorry, something went wrong.
I think this package is not compatible with nextjs or react 18+ version.
@yeasin-2002 check this solution #230 (comment)
Basically you need change the import style from react-syntax-highlighter/dist/esm/... to react-syntax-highlighter/dist/cjs/...
react-syntax-highlighter/dist/esm/...
react-syntax-highlighter/dist/cjs/...
@LeandroJavierLaino Thanks! It can work!
No branches or pull requests
Describe the bug
In next.js (Client Component) it is throwing error on Build time.
Error Message:
export { default as a11yDark } from './a11y-dark';
SyntaxError: Unexpected token 'export'
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: