yisraelx / ngx-showdown

Angular (>=2) integration for Showdown
http://yisraelx.github.io/ngx-showdown
MIT License
15 stars 13 forks source link

ERROR in MdModule is not an NgModule #1

Closed windmaomao closed 7 years ago

windmaomao commented 7 years ago

tried to install this but get this error after I import MdModule.

yisraelx commented 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.

windmaomao commented 7 years ago

thanks for the help.

there might be something i used wrong with outdated package.json. I updated it and now, it's working.

windmaomao commented 7 years ago

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.

yisraelx commented 7 years ago

I found it related to compile with angular compiler, I fix it and released a new version, Thanks

windmaomao commented 7 years ago

thanks a ton, it's fixed, i can build it now. Awesome.