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

Example error #20

Open
kwaggarsa opened this issue Oct 19, 2017 · 2 comments
Open

Example error #20

kwaggarsa opened this issue Oct 19, 2017 · 2 comments

Comments

@kwaggarsa
Copy link

IMPORTANT: This repository's issues are reserved for feature requests and bug reports. Do not submit support requests here.
I copied the source into my install and when i run it i get an error.

Steps to reproduce and a minimal demo of the problem
Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'ng2-highcharts' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highcharts]="chartOptions" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@16:8
Can't bind to 'ng2-highcharts' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highcharts]="chartBar" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@19:8
Can't bind to 'ng2-highstocks' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highstocks]="chartStock" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@24:8
Can't bind to 'ng2-highmaps' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highmaps]="chartMap" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@27:8
Error: Template parse errors:
Can't bind to 'ng2-highcharts' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highcharts]="chartOptions" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@16:8
Can't bind to 'ng2-highcharts' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highcharts]="chartBar" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@19:8
Can't bind to 'ng2-highstocks' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highstocks]="chartStock" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@24:8
Can't bind to 'ng2-highmaps' since it isn't a known property of 'div'. ("


<div [ERROR ->][ng2-highmaps]="chartMap" class="graph">


"): ng:///PlcgraphModule/PlcgraphComponent.html@27:8
at syntaxError (compiler.es5.js:1540)
at TemplateParser.webpackJsonp.../../../compiler/@angular/compiler.es5.js.TemplateParser.parse (compiler.es5.js:12031)
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileTemplate (compiler.es5.js:25782)
at compiler.es5.js:25706
at Set.forEach ()
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileComponents (compiler.es5.js:25706)
at createResult (compiler.es5.js:25591)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (zone.js:141)
at zone.js:817
at syntaxError (compiler.es5.js:1540)
at TemplateParser.webpackJsonp.../../../compiler/@angular/compiler.es5.js.TemplateParser.parse (compiler.es5.js:12031)
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileTemplate (compiler.es5.js:25782)
at compiler.es5.js:25706
at Set.forEach ()
at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileComponents (compiler.es5.js:25706)
at createResult (compiler.es5.js:25591)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (zone.js:141)
at zone.js:817
at resolvePromise (zone.js:769)
at resolvePromise (zone.js:740)
at zone.js:817
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:191)
at drainMicroTaskQueue (zone.js:584)
at
api.onUnhandledError @ zone.js:644
handleUnhandledRejection @ zone.js:666
_loop_1 @ zone.js:657
api.microtaskDrainDone @ zone.js:661
drainMicroTaskQueue @ zone.js:592
Promise resolved (async)
scheduleMicroTask @ zone.js:567
webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:413
webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:235
webpackJsonp.../../../../zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:255
scheduleResolveOrReject @ zone.js:815
ZoneAwarePromise.then @ zone.js:904
ZoneAwarePromise.all @ zone.js:884
webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._loadModules @ compiler.es5.js:25638
webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAndComponents @ compiler.es5.js:25589
webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync @ compiler.es5.js:25551
webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef
.bootstrapModuleWithZone @ core.es5.js:4811
webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef
.bootstrapModule @ core.es5.js:4797
../../../../../src/main.ts @ main.ts:12
webpack_require @ bootstrap 7ddea8ec2ad85c442cf3:54
0 @ main.bundle.js:6843
webpack_require @ bootstrap 7ddea8ec2ad85c442cf3:54
webpackJsonpCallback @ bootstrap 7ddea8ec2ad85c442cf3:25
(anonymous) @ main.bundle.js:1
What steps should we try in your demo to see the problem?

Current behavior

Expected/desired behavior

Other information
@angular/cli: 1.4.7
node: 6.11.2
os: win32 x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.4.7
@angular/compiler-cli: 4.1.3
typescript: 2.3.3

@kwaggarsa
Copy link
Author

I forgot to add the module to app.module.ts

After i added that it now does not compile:

ERROR in Error: Ng2Highcharts is not an NgModule
at _getNgModuleMetadata (D:\nodeprojects\AngularJS_4.x\full-version\node_mod
ules@angular\compiler-cli\src\ngtools_impl.js:133:15)
at _extractLazyRoutesFromStaticModule (D:\nodeprojects\AngularJS_4.x\full-ve
rsion\node_modules@angular\compiler-cli\src\ngtools_impl.js:101:26)
at D:\nodeprojects\AngularJS_4.x\full-version\node_modules@angular\compiler
-cli\src\ngtools_impl.js:122:27
at Array.reduce (native)
at _extractLazyRoutesFromStaticModule (D:\nodeprojects\AngularJS_4.x\full-ve
rsion\node_modules@angular\compiler-cli\src\ngtools_impl.js:121:10)
at Object.listLazyRoutesOfModule (D:\nodeprojects\AngularJS_4.x\full-version
\node_modules@angular\compiler-cli\src\ngtools_impl.js:52:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (D:\nodeprojects\Angular
JS_4.x\full-version\node_modules@angular\compiler-cli\src\ngtools_api.js:79:39)

at AotPlugin._getLazyRoutesFromNgtools (D:\nodeprojects\AngularJS_4.x\full-v

ersion\node_modules@ngtools\webpack\src\plugin.js:212:44)
at _donePromise.Promise.resolve.then.then.then.then.then (D:\nodeprojects\An
gularJS_4.x\full-version\node_modules@ngtools\webpack\src\plugin.js:448:24)
at process._tickCallback (internal/process/next_tick.js:109:7)

@DaveSkender
Copy link

It does not appear that this repo is moderated by anyone. Check out my Fork with updates to fix a few things. It's a it old at this point, but more likely to work. #19

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