angular2-notifications icon indicating copy to clipboard operation
angular2-notifications copied to clipboard

SystemJS loading

Open amihailes opened this issue 7 years ago • 4 comments

This line in the configuration: 'angular2-notifications': { main: './dist/index.js', defaultExtension: 'js' }

points the entry point for this library. The problem is that /dist/index.js is a typescript (or ES6) file.... So, the browser (Chrome or sytemjs) cannot charge it.....

amihailes avatar Apr 13 '17 07:04 amihailes

The problem seems to be that SystemJS tries to load traceur to compile the file down to es5, which is probably what most of us have configured their SystemJS to emit.

Configuring the systemjs-babel-plugin from npm solved the issue. I still ran into other issues with SystemJS though.

mark-langer avatar Apr 19 '17 21:04 mark-langer

I solved it rolling back to 0.5.3, issue #190

dmesa avatar Apr 26 '17 17:04 dmesa

Hi flauc! I just wanted to ask if you will provide a fix for this issue to enable loading the package through the SystemJS file.

Thanks in adv.

harishachar avatar Jun 23 '17 12:06 harishachar

This was fixed for me in 0.7.6

bomberblue07 avatar Jul 31 '17 21:07 bomberblue07