Home
Support Forums

Nuxt Image doesnt show up after deploy

Hi

I just deployed my first nuxt app on netlify with build command yarn generate, the problem now is that my image in the static folder doesnt load. The Console Error looks like this:
https://thomaskohlmannhuber.netlify.app/_ipx/w_1280/hero-img.png 404

My netlify domain is : https://thomaskohlmannhuber.netlify.app

Tried to remove:
ssr: false in the nuxt.config.js but doesnt change anything.

Hey there, @tkohlmannhuber :wave:

Thanks so much for reaching out and sharing what you have tried so far. Can you share a copy of your most recent deploy log with us, in full? Additionally, how large is the image you are trying to use?

Here is the latest full deploy log.
1:39:59 PM: Build ready to start
1:40:01 PM: build-image version: c5b01a919d3e16af69445c5de0cacb49efbb1a23 (focal)
1:40:01 PM: build-image tag: v4.4.0
1:40:01 PM: buildbot version: 9deea8f876b3228119111d3a654f519dd1866bfe
1:40:01 PM: Building without cache
1:40:01 PM: Starting to prepare the repo for build
1:40:01 PM: No cached dependencies found. Cloning fresh repo
1:40:01 PM: git clone GitHub - tkohlmannhuber/tk_cv
1:40:03 PM: Preparing Git Reference refs/heads/master
1:40:04 PM: Parsing package.json dependencies
1:40:04 PM: ​❯ Initial build environmentbaseRelDir: truebranch: mastercontext: productioncwd: /opt/build/repofeatureFlags: mode: buildbotrepositoryRoot: /opt/build/repositeId: 96243fab-bd8a-4930-a368-73502a2d9ba6​❯ UI build settingsbaseRelDir: truebuild: command: yarn generate environment: - NETLIFY_BUILD_DEBUG - NETLIFY_USE_YARN - NODE_VERSION publish: dist​❯ Resolved build environmentbranch: masterbuildDir: /opt/build/repocontext: productionenv: ​❯ Resolved configbuild: command: yarn generate commandOrigin: ui environment: - NETLIFY_BUILD_DEBUG - NETLIFY_USE_YARN - NODE_VERSION publish: /opt/build/repo/dist publishOrigin: ui
1:40:05 PM: Starting build script
1:40:05 PM: Installing dependencies
1:40:05 PM: Python version set to 2.7
1:40:06 PM: Downloading and installing node v14.0.0…
1:40:06 PM: Downloading https://nodejs.org/dist/v14.0.0/node-v14.0.0-linux-x64.tar.xz
1:40:06 PM: Computing checksum with sha256sum
1:40:06 PM: Checksums matched!
1:40:10 PM: Now using node v14.0.0 (npm v6.14.4)
1:40:10 PM: Started restoring cached build plugins
1:40:10 PM: Finished restoring cached build plugins
1:40:10 PM: Attempting ruby version 2.7.2, read from environment
1:40:12 PM: Using ruby version 2.7.2
1:40:12 PM: Using PHP version 8.0
1:40:12 PM: Started restoring cached yarn cache
1:40:12 PM: Finished restoring cached yarn cache
1:40:12 PM: Installing yarn at version 1.22.10
1:40:12 PM: Installing Yarn!
1:40:12 PM: > Downloading tarball…
1:40:12 PM: [1/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz → /tmp/yarn.tar.gz.c10ZVVRLs3
1:40:12 PM: % Total % Received % Xferd Average Speed Time Time Time Current
1:40:12 PM: Dload Upload Total Spent Left Speed
1:40:13 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
1:40:13 PM: 100 81 100 81 0 0 686 0 --:–:-- --:–:-- --:–:-- 686
1:40:13 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
1:40:13 PM: 100 95 100 95 0 0 124 0 --:–:-- --:–:-- --:–:-- 95000
1:40:13 PM: 100 626 100 626 0 0 717 0 --:–:-- --:–:-- --:–:-- 717
1:40:13 PM: 100 1215k 100 1215k 0 0 1223k 0 --:–:-- --:–:-- --:–:-- 1223k
1:40:13 PM: [2/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.asc → /tmp/yarn.tar.gz.c10ZVVRLs3.asc
1:40:13 PM: % Total % Received % Xferd Average Speed Time Time Time Current
1:40:13 PM: Dload Upload Total Spent Left Speed
1:40:13 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
1:40:13 PM: 100 85 100 85 0 0 1770 0 --:–:-- --:–:-- --:–:-- 1770
1:40:14 PM: 100 99 100 99 0 0 622 0 --:–:-- --:–:-- --:–:-- 622
1:40:14 PM: 100 630 100 630 0 0 3387 0 --:–:-- --:–:-- --:–:-- 3387
1:40:14 PM: 100 832 100 832 0 0 4223 0 --:–:-- --:–:-- --:–:-- 4223
1:40:14 PM: > Verifying integrity…
1:40:14 PM: gpg: Signature made Fri 02 Oct 2020 11:17:27 AM UTC
1:40:14 PM: gpg: using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
1:40:14 PM: gpg: Good signature from “Yarn Packaging yarn@dan.cx” [unknown]
1:40:14 PM: gpg: WARNING: This key is not certified with a trusted signature!
1:40:14 PM: gpg: There is no indication that the signature belongs to the owner.
1:40:14 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
1:40:14 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
1:40:14 PM: > GPG signature looks good
1:40:14 PM: > Extracting to ~/.yarn…
1:40:14 PM: > Adding to $PATH…
1:40:14 PM: > Successfully installed Yarn 1.22.10! Please open another terminal where the yarn command will now be available.
1:40:15 PM: No yarn workspaces detected
1:40:15 PM: Started restoring cached node modules
1:40:15 PM: Finished restoring cached node modules
1:40:15 PM: Installing NPM modules using Yarn version 1.22.10
1:40:16 PM: yarn install v1.22.10
1:40:16 PM: [1/4] Resolving packages…
1:40:17 PM: [2/4] Fetching packages…
1:40:47 PM: info fsevents@2.3.2: The platform “linux” is incompatible with this module.
1:40:47 PM: info “fsevents@2.3.2” is an optional dependency and failed compatibility check. Excluding it from installation.
1:40:47 PM: info fsevents@1.2.13: The platform “linux” is incompatible with this module.
1:40:47 PM: info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
1:40:47 PM: [3/4] Linking dependencies…
1:40:47 PM: warning “nuxt > @nuxt/components@2.2.1” has unmet peer dependency “consola@*”.
1:40:47 PM: warning " > @babel/eslint-parser@7.15.8" has unmet peer dependency “@babel/core@>=7.11.0”.
1:40:47 PM: warning “@nuxtjs/eslint-config > eslint-plugin-jest > @typescript-eslint/experimental-utils > @typescript-eslint/typescript-estree > tsutils@3.21.0” has unmet peer dependency “typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta”.
1:40:47 PM: warning “@nuxtjs/eslint-module > eslint-webpack-plugin@2.5.4” has unmet peer dependency “webpack@^4.0.0 || ^5.0.0”.
1:40:47 PM: warning " > sass-loader@10.2.0" has unmet peer dependency “webpack@^4.36.0 || ^5.0.0”.
1:40:58 PM: [4/4] Building fresh packages…
1:41:04 PM: Done in 47.96s.
1:41:04 PM: NPM modules installed using Yarn
1:41:04 PM: Started restoring cached go cache
1:41:04 PM: Finished restoring cached go cache
1:41:04 PM: go version go1.16.5 linux/amd64
1:41:04 PM: go version go1.16.5 linux/amd64
1:41:04 PM: Installing missing commands
1:41:04 PM: Verify run directory
1:41:06 PM: ​
1:41:06 PM: ────────────────────────────────────────────────────────────────
1:41:06 PM: Netlify Build
1:41:06 PM: ────────────────────────────────────────────────────────────────
1:41:06 PM: ​
1:41:06 PM: ❯ Version
1:41:06 PM: @netlify/build 18.20.1
1:41:06 PM: ​
1:41:06 PM: ❯ Flags
1:41:06 PM: apiHost: api.netlify.com
1:41:06 PM: baseRelDir: true
1:41:06 PM: branch: master
1:41:06 PM: buildId: 617fe01e18edaa2a3af0dacb
1:41:06 PM: buildbotServerSocket: /tmp/netlify-buildbot-socket
1:41:06 PM: cacheDir: /opt/build/cache
1:41:06 PM: cachedConfigPath: /tmp/netlify_config.json
1:41:06 PM: context: production
1:41:06 PM: cwd: /opt/build/repo
1:41:06 PM: deployId: 617fe01e18edaa2a3af0dacd
1:41:06 PM: featureFlags:
1:41:06 PM: - buildbot_build_go_functions
1:41:06 PM: framework: nuxt
1:41:06 PM: functionsDistDir: /tmp/zisi-617fe01e18edaa2a3af0dacd
1:41:06 PM: mode: buildbot
1:41:06 PM: nodePath: /opt/buildhome/.nvm/versions/node/v14.0.0/bin/node
1:41:06 PM: repositoryRoot: /opt/build/repo
1:41:06 PM: saveConfig: true
1:41:06 PM: sendStatus: true
1:41:06 PM: siteId: 96243fab-bd8a-4930-a368-73502a2d9ba6
1:41:06 PM: statsd:
1:41:06 PM: host: datadog-agent
1:41:06 PM: port: 8125
1:41:06 PM: testOpts:
1:41:06 PM: silentLingeringProcesses: ‘’
1:41:06 PM: ​
1:41:06 PM: ❯ Current directory
1:41:06 PM: /opt/build/repo
1:41:06 PM: ​
1:41:06 PM: ❯ Config file
1:41:06 PM: No config file was defined: using default values.
1:41:06 PM: ​
1:41:06 PM: ❯ Resolved config
1:41:06 PM: build:
1:41:06 PM: command: yarn generate
1:41:06 PM: commandOrigin: ui
1:41:06 PM: environment:
1:41:06 PM: - NETLIFY_BUILD_DEBUG
1:41:06 PM: - NETLIFY_USE_YARN
1:41:06 PM: - NODE_VERSION
1:41:06 PM: publish: /opt/build/repo/dist
1:41:06 PM: publishOrigin: ui
1:41:06 PM: ​
1:41:06 PM: ❯ Context
1:41:06 PM: production
1:41:06 PM: ​
1:41:06 PM: ────────────────────────────────────────────────────────────────
1:41:06 PM: 1. Build command from Netlify app
1:41:06 PM: ────────────────────────────────────────────────────────────────
1:41:06 PM: ​
1:41:06 PM: $ yarn generate
1:41:06 PM: yarn run v1.22.10
1:41:06 PM: $ nuxt generate
1:41:31 PM: Done in 24.55s.
1:41:31 PM: ​
1:41:31 PM: (build.command completed in 24.8s)
1:41:31 PM: ​
1:41:31 PM: ────────────────────────────────────────────────────────────────
1:41:31 PM: 2. Deploy site
1:41:31 PM: ────────────────────────────────────────────────────────────────
1:41:31 PM: ​
1:41:31 PM: ​
1:41:31 PM: ❯ Uploaded config
1:41:31 PM: No netlify.toml
1:41:31 PM: ​
1:41:31 PM: ❯ Uploaded headers
1:41:31 PM: Creating deploy upload records
1:41:31 PM: No headers
1:41:31 PM: ​
1:41:31 PM: ❯ Uploaded redirects
1:41:31 PM: No redirects
1:41:31 PM: ​
1:41:31 PM: Starting to deploy site from ‘dist’
1:41:31 PM: Creating deploy tree
1:41:31 PM: 0 new files to upload
1:41:31 PM: 0 new functions to upload
1:41:31 PM: Site deploy was successfully initiated
1:41:31 PM: ​
1:41:31 PM: (Deploy site completed in 118ms)
1:41:31 PM: ​
1:41:31 PM: ────────────────────────────────────────────────────────────────
1:41:31 PM: Netlify Build Complete
1:41:31 PM: ────────────────────────────────────────────────────────────────
1:41:31 PM: ​
1:41:31 PM: (Netlify Build completed in 25s)
1:41:31 PM: Starting post processing
1:41:31 PM: Post processing - HTML
1:41:31 PM: Post processing - header rules
1:41:31 PM: Post processing - redirect rules
1:41:31 PM: Post processing done
1:41:31 PM: Site is live :sparkles:
1:41:31 PM: Caching artifacts
1:41:31 PM: Started saving node modules
1:41:31 PM: Finished saving node modules
1:41:31 PM: Started saving build plugins
1:41:31 PM: Finished saving build plugins
1:41:31 PM: Started saving yarn cache

The image size is 270kb.

hi there, sorry to hear you are having issues with your images. I think the next step is to confirm that the image is actually present and addressable where you are thinking it is, given that the site builds with no issues.

you might use this tool to take a look at what we are actually building and deploying, or you can download your deploy from our UI: