I get following errors while compiling the UI project:
C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\abp-user-configuration.service.ts(16,37): error TS2304: Build:Cannot find name 'abp'. 1> 1> 1>C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\auth\permission-checker.service.ts(7,16): error TS2304: Build:Cannot find name 'abp'. 1> 1> 1>C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\auth\token.service.ts(7,16): error TS2304: Build:Cannot find name 'abp'. 1> 1> 1>C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\auth\token.service.ts(11,16): error TS2304: Build:Cannot find name 'abp'. 1> 1> 1>C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\auth\token.service.ts(15,9): error TS2304: Build:Cannot find name 'abp'. 1> 1> 1>C:\Work\Beneration\VerifiaBill\Source\angular\node_modules\abp-ng2-module\src\auth\token.service.ts(19,9): error TS2304: Build:Cannot find name 'abp'.
Attached is the outout from the build window. Spent a lot of time trying to fix this error, any help is appriciated.
8 Answer(s)
-
0
BTW, I am using Typescript 2.2.1, Visual studio 2015 (update 3) and all necessary dependencies.
-
0
Hi,
Can you build the project with npm ? What happens when you run "npm start" on command prompt after navigation the UI Project's root directory. This build problem might be related to something else like an Visual Studio extension, Resharper maybe. Do you have ReSharper installed ? If so, which version do you use ?
If your project does not build, please send an email regarding to this. We will try to help you.
Thanks.
-
0
I have updated angular-cli.json file to include environmentSource with correct information. When I run npm start command I see the same errors. Some sample error here:
ERROR in C:/Work/Beneration/VerifiaBill/Source/angular/src/root.module.ts (21,9): Cannot find name 'abp'.) C:/Work/Beneration/VerifiaBill/Source/angular/src/root.module.ts (26,29): Cannot find name 'abp'.) C:/Work/Beneration/VerifiaBill/Source/angular/src/root.module.ts (32,25): Cannot find name 'abp'.) C:/Work/Beneration/VerifiaBill/Source/angular/src/root.module.ts (36,25): Cannot find name 'abp'.)
-
0
Hi,
This problem is related to installed angular-cli version. When you run "npm install", it install the lates version of a package in AspNet Zero. So in this case, it installs angular-cli's latest version and our current solution structure is not compatible with that yet. We will upgrade our solution soon.
I suggest you to use "yarn install" instead of "npm install" in AspNet Zero for now.
-
0
Hi, I'm facing same problem is it solved using yarn install ? I have just merged both aspnet core and angular2 solutions following aspnet zero documentation. and in documentation it was mentioned to use npm install? Please let me know if its solved using yarn install?
-
0
Hi @ walkerscott,
Cause of your problem seems to be different. I have replied your other post. Please continue on that if your problem will not be fixed.
-
0
As I have merged both solutions and facing exactly same issue. Also I have followed your instructions on other post but it didn't work at all.