Skip to content
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

Issue: SeriesRegistry, AST & Undefined Errors in Highcharts Integration (Next.js >15 & React >19) #505

Open
rickybharti opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@rickybharti
Copy link

rickybharti commented Dec 20, 2024

Description:
DEMO LINK : https://replit.com/@rickybharti01/RundownLimeMoto

While attempting to integrate Highcharts and Highcharts React Official into a Next.js 15.1.2 app, the following errors occur:
1. SeriesRegistry TypeError:
• Errors like Cannot read properties of undefined (reading 'SeriesRegistry') imply an issue with Highcharts module initialization, potentially due to version mismatches or missing configurations.
2. AST Undefined Error:
• Cannot read properties of undefined (reading 'AST') is another sign of improper module integration or compatibility issues
3. Build and ESLint Errors:
• During npm run build, the build process fails with:
• TypeError: Cannot read properties of undefined (reading 'SeriesRegistry').
• ESLint error: Cannot serialize key "parse" in parser: Function values are not supported.

Steps to Reproduce:
1. Install Dependencies:
• Run: npm install highcharts highcharts-react-official.
2. Run Development Server:
• Command: npm run dev.
• Errors occur when accessing the app at the local server address (e.g., http://localhost:3000).
3. Build for Production:
• Command: npm run build.
• Fails with TypeError: Cannot read properties of undefined (reading 'SeriesRegistry').

Observations:
• Highcharts Version: 12.1.0
• Highcharts React Official Version: 3.2.1
• Next.js: 15.1.2
• React: >19
• Multiple ports (3000, 3001, 3002) were tried without success.
Screenshot 2024-12-20 at 9 38 51 PM
Uploading Screenshot 2024-12-20 at 3.21.43 PM.png…

@KamilKubik
Copy link
Contributor

Hi @rickybharti, thanks for reporting this!

We're working to put this right. Could you confirm if this workaround works fine for you?

Also, check the related thread.

Kind Regards!

@KamilKubik KamilKubik self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants