Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unexpected token export #85

Open
otmusic opened this issue Feb 15, 2017 · 3 comments
Open

Unexpected token export #85

otmusic opened this issue Feb 15, 2017 · 3 comments

Comments

@otmusic
Copy link

otmusic commented Feb 15, 2017

When I include ColorPickerModule in my app.module.ts. I get this error.

index.ts?c7fd:1 Uncaught SyntaxError: Unexpected token export at Object.157 (app.js:190) at __webpack_require__ (polyfills.js:51) at eval (eval at 156 (app.js:183), <anonymous>:5:10) at Object.156 (app.js:183) at __webpack_require__ (polyfills.js:51) at eval (eval at 98 (app.js:22), <anonymous>:14:31) at Object.98 (app.js:22) at __webpack_require__ (polyfills.js:51) at Object.eval (eval at 75 (app.js:15), <anonymous>:6:20) at eval (eval at 75 (app.js:15), <anonymous>:31:30) at Object.75 (app.js:15) at __webpack_require__ (polyfills.js:51) at Object.0 (app.js:7) at __webpack_require__ (polyfills.js:51) at webpackJsonpCallback (polyfills.js:22) at app.js:1

@dietergeerts
Copy link

I have the same issue. @otmusic, did you find a solution yet?

@otmusic
Copy link
Author

otmusic commented Apr 13, 2017

@dietergeerts I started using angular-cli, and the issue fixed.

@dietergeerts
Copy link

It's because this package is published with the .ts files, and that's bad. If this is done, you'll have to add it to the includes paths in webpack. Packages should be published with only .js and .d.ts files.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants