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
![image](https://private-user-images.githubusercontent.com/87494463/295379886-9dc2d36d-4cf4-4f2a-ac50-fe3e8d27c75b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5OTY2OTcsIm5iZiI6MTcyMzk5NjM5NywicGF0aCI6Ii84NzQ5NDQ2My8yOTUzNzk4ODYtOWRjMmQzNmQtNGNmNC00ZjJhLWFjNTAtZmUzZThkMjdjNzViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDE1NTMxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEyODFmMjc4YzI0ZDNiYzY5ODU1YzQwMDdjOWIwMjUyN2FlMTc5OGI2YzNjNTU1NzA4ODljZjcwNzI1Y2I5ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.15Inq3Foy3GpNnpt1WTstFRE-yqZL5Y9w1j-_ajE8-8)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: