opdahlmann / ng2-opd-popup-sample

4 stars 13 forks source link

error with PopupModule #13

Open panduNaresh opened 7 years ago

panduNaresh commented 7 years ago

Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/node_modules/@angular/core/index.d.ts, resolving symbol PopupModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/components/popup/popup.module.d.ts, resolving symbol PopupModule in C:/Users/HOME/my-first-app/node_modules/ng2-opd-popup/components/popup/popup.module.d.ts

zuandre commented 7 years ago

Same issue

BeSeech commented 7 years ago

Clone the project, run npm install and ng serve and you're going to get this issue.

vivek87799 commented 7 years ago

I have the same issue is there any fix for this ?

jeferramirez commented 7 years ago

same error :/ any help

alex-shmukler commented 7 years ago

Just go inside your ng2-opd-popup folder and delete the node_modules folder, it should fix the issue.

ELIDJEAKA commented 7 years ago

doesn't work

HazemAhmed95 commented 7 years ago

Specifying paths to @angular inside AngularCLI’s tsconfig.json solved for me.

"paths": { "@angular/*": ["../node_modules/@angular/*"] }

harrodevos commented 6 years ago

I did 2 things advised here (Angular 4 app by the way):

Next to that did a bunch of other things ..... updated my @angular modules (npm install @angular/xxx).

So it could be a combined solution, but the last thing I did was deleting the node_modules subdir and after that my ng build worked. Hope this helps somehow.

CMT66E commented 6 years ago

HazemAhmed95 's suggestion is working for my case. Thanks!