Open Closed

New Angular App does not work #9925


User avatar
0
jfistelmann created

created a new app using abp new MyApp -u angular -pwa

when trying to run it following error occures in dev console:

Refused to connect to 'http://localhost:4200/.well-known/appspecific/com.chrome.devtools.json' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.


3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • The error message "Cannot GET /" and the 404 Not Found response from http://localhost:4200/ indicate that the Angular development server is not serving your application as expected. This is not an ABP-specific issue, but a general Angular CLI/server problem.

    • This usually happens if you run ng serve (or yarn start/npm start) in the wrong directory, or if the Angular app was not built/installed correctly.

    Solution Steps:

    1. Navigate to the Angular Project Folder:

      • Make sure you are in the angular subfolder inside your ABP solution (e.g., MyApp/angular).
    2. Install Dependencies:

      • Run:
    yarn
    
     or
    
    npm install
    
    1. Start the Angular Development Server:
      • Run:
    yarn start
    
     or
    
    npm start
    
    • This should start the Angular app on http://localhost:4200/.
    1. Check for Errors:

      • If you still see "Cannot GET /", ensure you are not running another server (like Express) on the same port, and that your terminal output shows Angular CLI is serving the app.
    2. PWA Note:

      • If you used the -pwa flag, it should not affect local development, but make sure your environment is clean (no service workers from previous builds).

    Reference Screenshot: You should see the ABP Angular home page, not "Cannot GET /".

    Sources


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    erdem.caygor created
    Support Team

    Hello, We have also been able to reproduce this issue. Until an official solution is provided, could you please apply the solution provided in the following link for now ? link

  • User Avatar
    0
    jfistelmann created

    Thanks.

    literally saw that other question a minute after i panic posted this

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 23, 2025, 10:47