When I open a new created project using abp suite and when I open Angular project using Visual Studio code it says: Cannot find module '@abp/ng.core' in line "import { CoreModule } from '@abp/ng.core';" in path "src\app\app.module.ts"
Cannot find module '@angular/core'
What's the problem?
3 Answer(s)
-
0
Did you run the
yarn
command to install packages? Packages may not be installed correctly, please make sure that you have thenode_modules/@abp
folder. -
0
yes I have run yarn. Still missing that folder node_modules/@abp.
-
0
Check your Node version with this command:
node --version
It must be v10.x.x.If Node version is correct, you can remove
yarn.lock
,package-lock.json
,node_modules
and run thenpm install
.If the problem is still not resolved please run the following command to install depended ABP packages manually:
npm install @abp/ng.core @abp/ng.theme.shared @abp/ng.feature-management @abp/ng.permission-management @abp/ng.setting-management @abp/ng.setting-management.config