ng-dynamic icon indicating copy to clipboard operation
ng-dynamic copied to clipboard

Unable to load transpiler to transpile http://localhost:3000/node_modules/ng-dynamic/index.js

Open AliNm14 opened this issue 8 years ago • 5 comments

I have installed ng-dynamic but cannot proceed to use. i keep on getting this error in console. could not find any fix. tried to refer in different ways in systemjs.config.js file: 'ng-dynamic': 'npm:ng-dynamic/index.js' 'ng-dynamic': 'node_modules/ng-dynamic/index.js' 'ng-dynamic': 'https://unpkg.com/[email protected]/index.js'

whats the issue?

ERROR: GET http://localhost:3000/traceur 404 (Not Found) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/traceur Error: XHR error (404 Not Found) loading http://localhost:3000/traceur at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:889:29) [] at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:151:47) [ => ] at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:345:33) [] Error loading http://localhost:3000/traceur Unable to load transpiler to transpile http://localhost:3000/node_modules/ng-dynamic/index.js Error loading http://localhost:3000/node_modules/ng-dynamic/index.js as "ng-dynamic" from http://localhost:3000/app/app.module.js at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:889:29) [] at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:151:47) [ => ] at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:345:33) [] Error loading http://localhost:3000/traceur Unable to load transpiler to transpile http://localhost:3000/node_modules/ng-dynamic/index.js Error loading http://localhost:3000/node_modules/ng-dynamic/index.js as "ng-dynamic" from http://localhost:3000/app/app.module.js

AliNm14 avatar Jan 18 '17 07:01 AliNm14

I think it's not an error caused by ng-dynamic.

GET http://localhost:3000/traceur 404 (Not Found)

you failed fetching traceur, so you couldn't transpile anything.

lacolaco avatar Jan 20 '17 03:01 lacolaco

@laco0416 Traceur issue got resolved..Thanks! Can you provide a working example of DynamicComponentModule or a link to example ?

After traceur issue resolved, I'm getting this error:

Error: (SystemJS) Type DynamicDemoComponent is part of the declarations of 2 modules: SharedModule and AppModule! Please consider moving DynamicDemoComponent to a higher module that imports SharedModule and AppModule. You can also create a new NgModule that exports and includes DynamicDemoComponent then import that NgModule in SharedModule and AppModule.

I tried to solve this by removing 'DynamicDemoComponent' from AppModule declarations. But it again gives this error:

Template parse errors: Can't bind to 'dynamicComponent' since it isn't a known property of 'div'. (" <div [ERROR ->]*dynamicComponent="template; context: {text: text};"> "): DynamicDemoComponent@1:9

AliNm14 avatar Jan 31 '17 17:01 AliNm14

@AliNm14 how did you resolve the Traceur issue?

rahulbpatel avatar Apr 20 '17 23:04 rahulbpatel

@AliNm14 so how to solve traceur issue?

TomBak5 avatar Aug 11 '17 05:08 TomBak5

I'm getting the same errors, but only after adding "DynamicComponentModule.forRoot({imports: [RouterModule]})," to "@NgModule({ imports: [". Has anyone found a solution? And what is the solution?

wkhutchi avatar Sep 14 '17 04:09 wkhutchi