Closed windmaomao closed 7 years ago
Maybe you did:
import MdModule from 'ng2-md';
// or
import { default as MdModule } from 'ng2-md';
Instead:
import { MdModule } from 'ng2-md';
You can see an example for use in Plunker.
If this is not the problem, please put here an example of code that leads to the problem and version of Angular, so that i able to figure out what is the problem and solve it.
thanks for the help.
there might be something i used wrong with outdated package.json. I updated it and now, it's working.
ok, i still have this issue, i guess the problem is that i'm using angular-cli, it can not be built, and therefore gives ERROR in MdModule is not an NgModule, maybe angular-cli does uglify something. I have no idea. But currently i still have to roll back with my old showdown service version.
I found it related to compile with angular compiler, I fix it and released a new version, Thanks
thanks a ton, it's fixed, i can build it now. Awesome.
tried to install this but get this error after I import MdModule.