404 Page not found after a OK deploy

I just deployed my new Angular App (angular 15, maybe it can helps don’t know), and I got a 404e error.
It is the second time, I don’t know what to do, I followed everything, it did’nt seem difficult but maybe I missed something.
Thanks for your help.

4:22:13 PM: Site is live :sparkles:

Hi @t-camille :wave:t6: welcome to the forums! Thank you for reaching out. (;

Have you looked through this resource 7? It is a compilation of all of our build and deploy resources. This will be a good starting point.

Lastly, please share these additional details so we can look into your experience further:

  • the name of your site or slug (you have two on Netlify I need a specific site to look into)
  • your project repository
  • a full copy of your latest deploy log
  • what you have already tried to resolve the issue
  • any error messages you have received in your terminal window or in the developer console

Thanks so much!

thank you for having replied so fast.
I have been looking, maybe it could be the “outputPath”: “dist/talcosmetiques”
in my angular.json file. It is the first time,so I am not sur that I am doing it well.

4:21:36 PM: git clone --filter=blob:none https://github.com/t-camille/talcosmetiques_v1
4:21:37 PM: Preparing Git Reference refs/heads/master
4:21:37 PM: Parsing package.json dependencies
4:21:39 PM: Starting build script
4:21:39 PM: Installing dependencies
4:21:39 PM: Python version set to 2.7
4:21:39 PM: v16.19.0 is already installed.
4:21:40 PM: Now using node v16.19.0 (npm v8.19.3)
4:21:40 PM: Enabling node corepack
4:21:40 PM: Started restoring cached build plugins
4:21:40 PM: Finished restoring cached build plugins
4:21:40 PM: Attempting ruby version 2.7.2, read from environment
4:21:41 PM: Using ruby version 2.7.2
4:21:41 PM: Using PHP version 8.0
4:21:41 PM: No npm workspaces detected
4:21:41 PM: Started restoring cached node modules
4:21:41 PM: Finished restoring cached node modules
4:21:41 PM: Installing NPM modules using NPM version 8.19.3
4:21:45 PM: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
4:21:46 PM: npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
4:21:52 PM: added 895 packages, and audited 896 packages in 10s
4:21:52 PM: 84 packages are looking for funding
4:21:52 PM: run npm fund for details
4:21:52 PM: found 0 vulnerabilities
4:21:52 PM: NPM modules installed
4:21:52 PM: Creating package sha
4:21:52 PM: Started restoring cached go cache
4:21:52 PM: Finished restoring cached go cache
4:21:53 PM: go version go1.19.4 linux/amd64
4:21:53 PM: Detected 1 framework(s)
4:21:53 PM: “angular” at version “15.0.4”
4:21:53 PM: Installing missing commands
4:21:53 PM: Verify run directory
4:21:53 PM: Section completed: initializing
4:21:55 PM: ​
4:21:55 PM: Netlify Build
4:21:55 PM: ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
4:21:55 PM: ​
4:21:55 PM: $ npm run build
4:21:55 PM: > talcosmetiques@0.0.0 build
4:21:55 PM: > ng build
4:21:57 PM: - Generating browser application bundles (phase: setup)…
4:22:09 PM: :heavy_check_mark: Browser application bundle generation complete.
4:22:09 PM: :heavy_check_mark: Browser application bundle generation complete.
4:22:09 PM: - Copying assets…
4:22:09 PM: :heavy_check_mark: Copying assets complete.
4:22:09 PM: - Generating index html…
4:22:09 PM: :heavy_check_mark: Index html generation complete.
4:22:09 PM: Initial Chunk Files | Names | Raw Size | Estimated Transfer Size
4:22:09 PM: main.b22025038eb2015b.js | main | 196.65 kB | 53.62 kB
4:22:09 PM: polyfills.c41eecfaa28cea59.js | polyfills | 33.08 kB | 10.63 kB
4:22:09 PM: runtime.1753ea05c5fb06a9.js | runtime | 906 bytes | 514 bytes
4:22:09 PM: styles.ef46db3751d8e999.css | styles | 0 bytes | -
4:22:09 PM:
4:22:09 PM: | Initial Total | 230.62 kB | 64.75 kB
4:22:10 PM: Starting post processing
4:22:09 PM:
4:22:09 PM: Build at: 2023-01-03T15:22:09.977Z - Hash: 130e14d1497f4bc6 - Time: 12810ms
4:22:10 PM: ​
4:22:10 PM: (build.command completed in 14.8s)
4:22:10 PM: Post processing - HTML
4:22:10 PM: ​
4:22:10 PM: 2. Deploy site

I can’t past all the log otherwise an error message occurs. But it ended well.

Sorry for disturbing you.
It was the outPutPath issue. I just had to remove the project’s name after “dist/”. I couldn’t find it by myself.

1 Like

Hiya @t-camille don’t worry not a bother at all. Thanks for coming back and letting me know what helped resolve your issue this will help others in the future!