shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 241 forks source link

Build project (ng serve) is failing with angular 4.3.6 for "ngx-modialog": "^3.0.2" #399

Open yaswanthpsl opened 6 years ago

yaswanthpsl commented 6 years ago

IMPORTANT: Please provide a sample using: http://plnkr.co/edit/lV7zsw7Yqossgs9JOfQU?p=preview

ERROR in /Users/blah/company-common-utils/src/app/utilsModule/utils.module.ts (17,32): Cannot find module 'ngx-modialog/plugins/vex'. ERROR in Error: Error encountered resolving symbol values statically. Could not resolve ngx-modialog/plugins/vex relative to /Users/blah/company-common-utils/src/app/utilsModule/utils.module.ts., resolving symbol UtilsModule in /Users/blah/company-common-utils/src/app/utilsModule/utils.module.ts, resolving symbol UtilsModule in /Users/blah/company-common-utils/src/app/utilsModule/utils.module.ts at syntaxError (/Users/blah/company-common-utils/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34) at simplifyInContext (/Users/blah/company-common-utils/node_modules/@angular/compiler/bundles/compiler.umd.js:25118:23) at StaticReflector.simplify (/Users/blah/company-common-utils/node_modules/@angular/compiler/bundles/compiler.umd.js:25130:13) at StaticReflector.annotations (/Users/blah/company-common-utils/node_modules/@angular/compiler/bundles/compiler.umd.js:24558:41) at _getNgModuleMetadata (/Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_impl.js:138:31) at _extractLazyRoutesFromStaticModule (/Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_impl.js:109:26) at /Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_impl.js:129:27 at Array.reduce (native) at _extractLazyRoutesFromStaticModule (/Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_impl.js:128:10) at Object.listLazyRoutesOfModule (/Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_impl.js:53:22) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (/Users/blah/company-common-utils/node_modules/@angular/compiler-cli/src/ngtools_api.js:91:39) at AotPlugin._getLazyRoutesFromNgtools (/Users/blah/company-common-utils/node_modules/@ngtools/webpack/src/plugin.js:207:44) at _donePromise.Promise.resolve.then.then.then.then.then (/Users/blah/company-common-utils/node_modules/@ngtools/webpack/src/plugin.js:443:24) at process._tickCallback (internal/process/next_tick.js:109:7)

Are there any breaking changes do I need to upgrade

lubek1983 commented 6 years ago

the same problem here

neoncube2 commented 6 years ago

I think I ran into this issue when using a version of TypeScript that was unsupported under the Angular version that I was using. In my case, the version of TypeScript was too high.