-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
chartist issue with Ionic --prod mode #150
Comments
Hey there, this has been an issue that keeps cropping up. It seems people had luck with this solution. Let me know if that works for you. |
Hey @willsoto I tried the solution it didn't work but I have found a temporary workaround. As per the earlier solution... I've changed the imports in my module files as It throws an error as it can't find the module, which is wierd as the
In order to fix it, I had to grab the typescript file and place it in my local project. Importing that file in my original module files work. I'm glad that the project works in production mode now although it would be great once there is a potential permanent fix. Hopefully, this solves the issue others might be facing with Ionic projects. |
I am open to PRs of course, but glad to see you solved the immediate problem. |
the plugin is really great but unfortunately, there is a slight issue when I compile my Ionic application in production. I had to narrow it down to chartist as the entire tab page was blank due to some minification error. I'm on the latest version of Ionic and ng-chartist. My console shows this error
I import ng chartist in the component module (which is lazy loaded). i.e. portfolio.module.ts
import { ChartistModule } from 'ng-chartist';
andimports in portfolio.ts
Inside my class, I create the chart object with options
And I finally reference the chart in my html
I have tried to import the chartist module in app.module.ts as well but I get template parse errors
has anyone come across this issue before? Any help appreciated. I'm on the latest version of Ionic 3.7.1, including its packages and ng-chartist as well
The text was updated successfully, but these errors were encountered: