Open Closed

Error opening a new project abp angular #13


0
[email protected] created

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
    Mehmet created
    Support Team

    Did you run the yarn command to install packages? Packages may not be installed correctly, please make sure that you have the node_modules/@abp folder.

  • 0
    [email protected] created

    yes I have run yarn. Still missing that folder node_modules/@abp.

  • 0
    Mehmet created
    Support Team

    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 the npm 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