Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ng2-bootstrap error with systemjs #752

Closed
sqlsolver opened this issue Jul 18, 2016 · 5 comments
Closed

ng2-bootstrap error with systemjs #752

sqlsolver opened this issue Jul 18, 2016 · 5 comments

Comments

@sqlsolver
Copy link

ng2-bootstrap accordion component appears to conflict with systemjs loader.

Here's what's showing in the Chrome dev tools console:
zone.js:323 Error: (SystemJS) TypeError: Reflect.getOwnMetadata is not a function at PropDecorator (http://easyofficeforms.com/easyOfficeForms/node_modules/@angular/core/bundles/core.umd.js:2817:40) at __decorate (http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js:5:110) at eval (http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js:39:5) at Object.eval (http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js:55:2) at eval (http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js:58:4) at eval (http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js:59:3) Evaluating http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion/accordion.component.js Evaluating http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/components/accordion.js Evaluating http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/ng2-bootstrap.js Error loading http://easyofficeforms.com/easyOfficeForms/app/EOFapp.ts
http://easyofficeforms.com

I created a second app without ng2-bootstrap and systemjs loads all the components without error.

@valorkin
Copy link
Member

@sqlsolver please compare to sample system.js app, works fine
https://github.com/valor-software/angular2-quickstart

@valorkin
Copy link
Member

https://www.hamsterpad.com/chat/ng2
join slack, so you can ask for help configuring app
but prepare sample repo with config to share

@sqlsolver
Copy link
Author

Thanks - I see several things to change after viewing your sample. Good to know they work together!

@sqlsolver
Copy link
Author

Thanks for the sample, the app is back up. The only remaining error is non-blocking:
Failed to parse SourceMap: http://easyofficeforms.com/easyOfficeForms/node_modules/ng2-bootstrap/bundles/ng2-bootstrap.min.js.map which seems to already be on your radar #367

@valorkin
Copy link
Member

Yeap, most probably system.js bundle will be deprecated, and one Umd bundle will replace it

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

No branches or pull requests

2 participants