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

alpha.6-3 broken #954

Closed
udos86 opened this issue Aug 6, 2016 · 8 comments
Closed

alpha.6-3 broken #954

udos86 opened this issue Aug 6, 2016 · 8 comments

Comments

@udos86
Copy link

udos86 commented Aug 6, 2016

Bug, feature request, or proposal:

Bug

What is the expected behavior?

SystemJS / Webpack loading Angular 2 Material properly

What is the current behavior?

When updating to alpha.6-3, SystemJS / Webpack fails loading Angular 2 Material with the following error:

Error: (SystemJS) core_1.NgModule is not a function
    TypeError: core_1.NgModule is not a function
        at eval (http://localhost:3000/node_modules/@angular2-material/core/rtl/dir.js:70:16)
        at Object.eval (http://localhost:3000/node_modules/@angular2-material/core/rtl/dir.js:77:2)
        at eval (http://localhost:3000/node_modules/@angular2-material/core/rtl/dir.js:80:4)
        at eval (http://localhost:3000/node_modules/@angular2-material/core/rtl/dir.js:81:3)

Karma / PhantomJS also stop executing with the following error prompt:

PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  {
    "stack": null,
    "originalErr": {
      "line": 70,
      "stack": "\n\n\neval code\neval@[native code]\n__exec@node_modules/systemjs/dist/system.src.js:1559:18\nexecute@node_modules/systemjs/dist/system.src.js:4020:22\nlinkDynamicModule@node_modules/systemjs/dist/system.src.js:3296:36\ngetModule@node_modules/systemjs/dist/system.src.js:3264:26\nnode_modules/systemjs/dist/system.src.js:3300:25\nrequire@node_modules/systemjs/dist/system.src.js:3984:34\n\n\neval code\neval@[native code]\n__exec@node_modules/systemjs/dist/system.src.js:1559:18\nexecute@node_modules/systemjs/dist/system.src.js:4020:22\nlinkDynamicModule@node_modules/systemjs/dist/system.src.js:3296:36\ngetModule@node_modules/systemjs/dist/system.src.js:3264:26\nnode_modules/systemjs/dist/system.src.js:3300:25\nrequire@node_modules/systemjs/dist/system.src.js:3984:34\n\n\neval code\neval@[native code]\n__exec@node_modules/systemjs/dist/system.src.js:1559:18\nexecute@node_modules/systemjs/dist/system.src.js:4020:22\nlinkDynamicModule@node_modules/systemjs/dist/system.src.js:3296:36\ngetModule@node_modules/systemjs/dist/system.src.js:3264:26\nnode_modules/systemjs/dist/system.src.js:3300:25\nrequire@node_modules/systemjs/dist/system.src.js:3984:34\n\n\neval code\neval@[native code]\n__exec@node_modules/systemjs/dist/system.src.js:1559:18\nexecute@node_modules/systemjs/dist/system.src.js:4020:22\nlinkDynamicModule@node_modules/systemjs/dist/system.src.js:3296:36\nlink@node_modules/systemjs/dist/system.src.js:3135:28\nexecute@node_modules/systemjs/dist/system.src.js:3506:17\ndoDynamicExecute@node_modules/systemjs/dist/system.src.js:772:32\nlink@node_modules/systemjs/dist/system.src.js:970:36\ndoLink@node_modules/systemjs/dist/system.src.js:629:11\nupdateLinkSetOnLoad@node_modules/systemjs/dist/system.src.js:675:24\nnode_modules/systemjs/dist/system.src.js:491:30\ninvoke@node_modules/zone.js/dist/zone.js:323:34\nrun@node_modules/zone.js/dist/zone.js:216:50\nnode_modules/zone.js/dist/zone.js:571:61\ninvokeTask@node_modules/zone.js/dist/zone.js:356:43\nrunTask@node_modules/zone.js/dist/zone.js:256:58\ndrainMicroTaskQueue@node_modules/zone.js/dist/zone.js:474:43\ninvoke@node_modules/zone.js/dist/zone.js:426:41\nnode_modules/zone.js/dist/zone.js:93:33\ninvokeTask@node_modules/zone.js/dist/zone.js:356:43\nrunTask@node_modules/zone.js/dist/zone.js:256:58\ninvoke@node_modules/zone.js/dist/zone.js:423:41"
    },
    "line": 797,
    "sourceURL": "node_modules/systemjs/dist/system.src.js"
  }

What are the steps to reproduce?

Update to alpha.6-3

@udos86 udos86 changed the title alpha.6-3 breaks Karma / PhantomJS alpha.6-3 breaks SystemJS Aug 6, 2016
@dreday966
Copy link

I met this issue,too.

@bgauvey
Copy link

bgauvey commented Aug 7, 2016

ditto. Same error

Using webpack instead of SystemJS.

@udos86 udos86 changed the title alpha.6-3 breaks SystemJS alpha.6-3 broken Aug 7, 2016
justindujardin added a commit to justindujardin/ng2-material that referenced this issue Aug 7, 2016
 - to fix error at bootstrapping that complains about NgModule not being available, see: angular/components#954
@jelbourn
Copy link
Member

jelbourn commented Aug 8, 2016

alpha.6-3 is published under the @experimental label on npm. Only the @latest label represents our current release.

@jelbourn jelbourn closed this as completed Aug 8, 2016
@dreday966
Copy link

dreday966 commented Aug 9, 2016

I am on alpha.6-2,and I also met this issue.

@a5hik
Copy link

a5hik commented Aug 9, 2016

same here with 6-3. I guess this is because the material2 project uses angular version from the repo and not a release version. thus with the intro of new 'NgModules' in angular latest causing this.

@kurtommy
Copy link

kurtommy commented Aug 9, 2016

@jelbourn I'm trying to use md-menu. After npm i -S @angular2-material/[email protected]

npm ERR! No compatible version found: @angular2-material/[email protected]
npm ERR! Valid install targets:
npm ERR! 2.0.0-alpha.6-3, 2.0.0-alpha.6-2

but if i install @angular2-material/[email protected] he need also @angular2-material/[email protected] wich lead the error mentioned above.

There is an md-menu compatible with @angular2-material/[email protected] ?

@briankoech
Copy link

I get this error trying to use md-input .

@jelbourn
Copy link
Member

jelbourn commented Aug 9, 2016

alpha.7 is released now.

alpha.6-2 and alpha.6-3 were never published under the @latest tag on npm, only the @experimental tag.

@angular angular locked and limited conversation to collaborators Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants