-
Notifications
You must be signed in to change notification settings - Fork 33
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
Build error with NextJs #45
Comments
Hi @Lunatial , |
Hi @Lunatial |
Re: "Uncaught SyntaxError: Unexpected token (" in bundle.min.js I'm having the same issue here in my ReactJS project. It's only on the production build (dev is fine). As well, no SSR or Next.js in my project. However it is the trial version of the library as I wanted to show the client a quick test run before committing. I can do that with a dev build as well, but it makes me hesitate purchasing licenses if I can't get past this issue. Happy to provide more info. |
I'm facing the same issue in my ReactJS project. |
@Lunatial did you create your ReactJS project with |
Hi, I am having the same issue with React.Js Project. I didn't use |
@divo93 can you please share how you have imported |
@rohanoid5 attaching the file of the working code. |
Facing same issue with my react project |
If you don't need the SSR feature, you can just use a dynamic import with SSR disabled. |
This is what I'm currently doing however it's kind of messy, because of the initialization you have to do on the chart package once it's imported. I'm still working on figuring out the best way to handle this. |
Follow this guide for rendering charts using Nextjs : https://ayon-bony.medium.com/rendering-fusioncharts-using-next-js-9630210c2854 |
@AyanBhadury I cloned the repo from your example, but when running |
|
@Larry741 no, I was not able to find a solution so I abandoned fusioncharts and used ant charts in my nextjs app |
Hi, I faced some difficulties which I cannot solve, so I am here for help.
I would like to use fusioncharts but in the built project the charts do now show up, and the console throws an error: Uncaught SyntaxError: Unexpected token ( .
I recreated the basics in a new example NextJS app and also had the same problem when I build it, you can check it out: https://github.com/Lunatial/FusionCharts
Another problem of mine is that (I could only try it in development mode) the fusionCharts tried to download google-fonts by CDN, and I do not know how to disable that effort.
The text was updated successfully, but these errors were encountered: