You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Gulp (just migrated from ng-cli) to build our angular2 project where I use Fuel-ui.
We have a strange error. We use Fuel-ui's alert component in one of our components. If I reference fuel-ui from
node_modules/fuel-ui folder in system.config.js everything is fine. If I reference it from build/vendor/fuel-ui, it fails with the following error:
EXCEPTION: Unexpected directive value 'undefined' on the View of component 'MyAlertComponent'
platform-browser.umd.js:1900 EXCEPTION: Unexpected directive value 'undefined' on the View of component 'MyAlertComponent'BrowserDomAdapter.logError @ platform-browser.umd.js:1900
platform-browser.umd.js:1900 STACKTRACE:BrowserDomAdapter.logError @ platform-browser.umd.js:1900
platform-browser.umd.js:1900 Error: Unexpected directive value 'undefined' on the View of component 'MyAlertComponent'
at new BaseException$1 (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:971:27)
at CompileMetadataResolver.getViewDirectivesMetadata (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:12539:27)
at RuntimeCompiler._getCompiledTemplate (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14619:40)
at RuntimeCompiler._getTransitiveCompiledTemplates (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14637:84)
at eval (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14640:81)
at Array.forEach (native)
at RuntimeCompiler._getTransitiveCompiledTemplates (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14640:45)
at eval (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14640:81)
at Array.forEach (native)
at RuntimeCompiler._getTransitiveCompiledTemplates (http://127.0.0.1:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:14640:45)BrowserDomAdapter.logError @ platform-browser.umd.js:1900
zone.min.js:1 Error: Error: Unexpected directive value 'undefined' on the View of component 'MyAlertComponent'(…)e.invoke @ zone.min.js:1
Relevant part of systemjs.config.js:
works, no error:
var map = {
...
"fuel-ui": "node_modules/fuel-ui/bundles",
...
};
doesn't work, gives exception:
var map = {
...
"fuel-ui": "build/vendor/fuel-ui/bundles",
...
};
Relevant part of the component:
import {Component, Input,ElementRef} from '@angular/core';
import {Alert} from 'fuel-ui/fuel-ui';
@Component({
host: {
'(document:click)': 'onClick($event)',
},
selector: 'my-alert',
templateUrl: './app/components/shared/my-alert.component.html',
directives: [ Alert ]
})
export class MyAlertComponent {
The files are identical in both locations. The fuel-ui.js is loaded in both cases. No 404 errors anywhere. The load order of the loaded js files is the same in both cases.
Still the first config works, the second doesn't.
I tried to do the same with all the other referenced packages in system.config.js, everything works with any location I want to use, except fuel-ui.
Do you have any ideas what went wrong here?
The text was updated successfully, but these errors were encountered:
Hi,
I'm using Gulp (just migrated from ng-cli) to build our angular2 project where I use Fuel-ui.
We have a strange error. We use Fuel-ui's alert component in one of our components. If I reference fuel-ui from
node_modules/fuel-ui folder in system.config.js everything is fine. If I reference it from build/vendor/fuel-ui, it fails with the following error:
Relevant part of systemjs.config.js:
works, no error:
doesn't work, gives exception:
Relevant part of the component:
A part of package.json:
The files are identical in both locations. The fuel-ui.js is loaded in both cases. No 404 errors anywhere. The load order of the loaded js files is the same in both cases.
Still the first config works, the second doesn't.
I tried to do the same with all the other referenced packages in system.config.js, everything works with any location I want to use, except fuel-ui.
Do you have any ideas what went wrong here?
The text was updated successfully, but these errors were encountered: