ng-dynamic
ng-dynamic copied to clipboard
Unable to load transpiler to transpile http://localhost:3000/node_modules/ng-dynamic/index.js
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) [
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.
@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 how did you resolve the Traceur issue?
@AliNm14 so how to solve traceur issue?
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?