vimalavinisha/angular2-image-popup

zone.js SyntaxError: Unexpected token <

Closed this issue · 1 comments

Ks89 commented

Hi!
I'm trying to use your lib, but I have a problem.
I included all css files into my index.html.

I'm using the latest version of all libraries, including Angular rc5.

I imported ImageModal as explained and declared ImageModel in this way;

@component({
selector: 'my-page',
providers: [],
directives: [ImageModal],
styleUrls: [],
templateUrl: 'my.html'
})
export default class MyComponent {
...
}

When I try to load my application I receive this error:

zone.js:461 Unhandled Promise rejection: (SystemJS) Unexpected token <
SyntaxError: Unexpected token <
Evaluating http://localhost:3000/node_modules/angular2-image-popup/directives/angular2-image-popup/image-modal-popup
Error loading http://localhost:3000/app/main.ts ; Zone: ; Task: Promise.then ; Value: Error: (SystemJS) Unexpected token <(…)consoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:463 Error: Uncaught (in promise): Error: (SystemJS) Unexpected token <(…)consoleError @ zone.js:463_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426

and this one:

zone.js:463 Error: Uncaught (in promise): Error: (SystemJS) Unexpected token <(…)consoleError @ zone.js:463_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426.

Ks89 commented

Mmm wait probably it's my fault.
I close this issue.