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

Error in src/app/components/dashboard/weather-report/weather-report.component.ts #566

Closed
gelliravi opened this issue Jun 21, 2018 · 2 comments

Comments

@gelliravi
Copy link

App (dashboard-app-angular5) described at https://stackblitz.com/@madhavmahesh1969 displays the following error:

Error in src/app/components/dashboard/weather-report/weather-report.component.ts (7:0)
Exporting is not a function
Evaluating src/app/components/dashboard/weather-report/weather-report.component.ts
Evaluating src/app/routes/app.routes.ts
Evaluating src/app/app.module.ts
Evaluating src/main.ts
Booting application

URL: https://stackblitz.com/edit/dashboard-app-angular5

looking forward to resolve the following error.

Error snapshot:
image

@seveves
Copy link
Collaborator

seveves commented Jun 21, 2018

It seems like this is a problem with the highcharts library but when using the following code to import highcharts in weather-report.component.ts it works fine for me:

import { Component, OnInit } from '@angular/core';
import Highcharts from 'highcharts';
import { routerTransitionToLeft } from '../../../animations/router.animations';
// Load the exporting module.
import Exporting from 'highcharts/modules/exporting';
// Initialize exporting module.
Exporting(Highcharts); 
...

@purplem1lk
Copy link
Contributor

It seems like this is a problem with the highcharts library but when using the following code to import highcharts in weather-report.component.ts it works fine for me:

import { Component, OnInit } from '@angular/core';
import Highcharts from 'highcharts';
import { routerTransitionToLeft } from '../../../animations/router.animations';
// Load the exporting module.
import Exporting from 'highcharts/modules/exporting';
// Initialize exporting module.
Exporting(Highcharts); 
...

This issue has been resolved and will be closed accordingly. If your issue persists, feel free to tag me or ask to reopen this issue with a description and screenshots of the error. Thank you! :)

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

3 participants