Could not resolve '../store/Auth' from middleware/auth.ts

Hi, I’m trying to implement my application here and I’m having errors in the build, errors that don’t happen on my computer, I can build without error.
As you can see in the prints, the file exists, it is in the correct folder, I already tried “~/store”, “@/store”, “…/store” …

Netlify site name: rainbow-muffin-dbdc67
Build logs:

8:40:19 PM: Build ready to start
8:41:20 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
8:41:20 PM: build-image tag: v4.10.1
8:41:20 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390
8:41:20 PM: Fetching cached dependencies
8:41:20 PM: Failed to fetch cache, continuing with build
8:41:20 PM: Starting to prepare the repo for build
8:41:21 PM: No cached dependencies found. Cloning fresh repo
8:41:21 PM: git clone git@gitlab.com:weellingtonc/cubo-next
8:41:23 PM: Preparing Git Reference refs/heads/main
8:41:23 PM: Parsing package.json dependencies
8:41:24 PM: Starting build script
8:41:24 PM: Installing dependencies
8:41:24 PM: Python version set to 2.7
8:41:25 PM: Downloading and installing node v16.17.0...
8:41:25 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
8:41:25 PM: Computing checksum with sha256sum
8:41:25 PM: Checksums matched!
8:41:27 PM: Now using node v16.17.0 (npm v8.15.0)
8:41:27 PM: Started restoring cached build plugins
8:41:27 PM: Finished restoring cached build plugins
8:41:27 PM: Attempting ruby version 2.7.2, read from environment
8:41:28 PM: Using ruby version 2.7.2
8:41:28 PM: Using PHP version 8.0
8:41:28 PM: Started restoring cached yarn cache
8:41:28 PM: Finished restoring cached yarn cache
8:41:28 PM: No yarn workspaces detected
8:41:28 PM: Started restoring cached node modules
8:41:28 PM: Finished restoring cached node modules
8:41:28 PM: Installing NPM modules using Yarn version 1.22.10
8:41:29 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
8:41:29 PM: npm WARN config location in the cache, and they are managed by
8:41:29 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
8:41:29 PM: yarn install v1.22.10
8:41:29 PM: [1/5] Validating package.json...
8:41:29 PM: [2/5] Resolving packages...
8:41:29 PM: [3/5] Fetching packages...
8:41:41 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
8:41:41 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info @esbuild/linux-loong64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "@esbuild/linux-loong64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-android-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-arm64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-android-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-darwin-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-darwin-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-darwin-arm64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-darwin-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-darwin-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-freebsd-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-freebsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-freebsd-arm64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-freebsd-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-freebsd-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-linux-32@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-32@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-arm@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-arm@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-mips64le@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-mips64le@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-ppc64le@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-ppc64le@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-riscv64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-riscv64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-s390x@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-s390x@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-netbsd-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-netbsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-openbsd-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-openbsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-sunos-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-sunos-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-32@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-32@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-32@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-windows-64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-arm64@0.15.6: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: warning vscode-languageclient@7.0.0: The engine "vscode" appears to be invalid.
8:41:41 PM: info @esbuild/linux-loong64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "@esbuild/linux-loong64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-android-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-arm64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-android-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-android-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-darwin-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-darwin-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-darwin-arm64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-darwin-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-darwin-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-freebsd-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-freebsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-freebsd-arm64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-freebsd-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-freebsd-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-linux-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-arm@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-arm@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-mips64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-mips64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-ppc64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-ppc64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-riscv64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-riscv64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-linux-s390x@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info "esbuild-linux-s390x@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-netbsd-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-netbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-openbsd-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-openbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-sunos-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-sunos-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-32@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: info esbuild-windows-64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-arm64@0.14.54: The platform "linux" is incompatible with this module.
8:41:41 PM: info "esbuild-windows-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
8:41:41 PM: info esbuild-windows-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
8:41:41 PM: [4/5] Linking dependencies...
8:41:41 PM: warning " > @fullcalendar/vue3@5.11.2" has unmet peer dependency "vue@^3.0.11".
8:41:41 PM: warning " > pinia@2.0.21" has unmet peer dependency "vue@^2.6.14 || ^3.2.0".
8:41:41 PM: warning "@vuelidate/core > vue-demi@0.13.11" has unmet peer dependency "vue@^3.0.0-0 || ^2.6.0".
8:41:41 PM: warning " > form-wizard-vue3@0.3.3" has unmet peer dependency "vue@3.x".
8:41:41 PM: warning " > primevue@3.16.2" has unmet peer dependency "vue@^3.0.0".
8:41:41 PM: warning " > sass-loader@10.3.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
8:41:41 PM: warning " > vue-currency-input@3.0.0" has unmet peer dependency "vue@^2.7 || ^3.0.0".
8:41:41 PM: warning " > vue-prism-editor@2.0.0-alpha.2" has unmet peer dependency "vue@^3.0.0".
8:41:41 PM: warning " > vue-toastification@2.0.0-rc.5" has unmet peer dependency "vue@^3.0.2".
8:41:41 PM: warning " > vuedraggable@4.1.0" has unmet peer dependency "vue@^3.0.1".
8:41:44 PM: [5/5] Building fresh packages...
8:41:47 PM: Done in 17.81s.
8:41:47 PM: NPM modules installed using Yarn
8:41:47 PM: Started restoring cached go cache
8:41:47 PM: Finished restoring cached go cache
8:41:47 PM: Installing Go version 1.17 (requested 1.17)
8:41:51 PM: unset GOOS;
8:41:51 PM: unset GOARCH;
8:41:51 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
8:41:51 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
8:41:51 PM: go version >&2;
8:41:51 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
8:41:51 PM: go version go1.17 linux/amd64
8:41:51 PM: Installing missing commands
8:41:51 PM: Verify run directory
8:41:52 PM: ​
8:41:52 PM: ────────────────────────────────────────────────────────────────
8:41:52 PM:   Netlify Build                                                 
8:41:52 PM: ────────────────────────────────────────────────────────────────
8:41:52 PM: ​
8:41:52 PM: ❯ Version
8:41:52 PM:   @netlify/build 27.16.1
8:41:52 PM: ​
8:41:52 PM: ❯ Flags
8:41:52 PM:   baseRelDir: true
8:41:52 PM:   buildId: 6313e5e3c6d89f00089ca4ce
8:41:52 PM:   deployId: 6313e5e3c6d89f00089ca4d0
8:41:52 PM: ​
8:41:52 PM: ❯ Current directory
8:41:52 PM:   /opt/build/repo
8:41:52 PM: ​
8:41:52 PM: ❯ Config file
8:41:52 PM:   No config file was defined: using default values.
8:41:52 PM: ​
8:41:52 PM: ❯ Context
8:41:52 PM:   production
8:41:52 PM: ​
8:41:52 PM: ────────────────────────────────────────────────────────────────
8:41:52 PM:   1. Build command from Netlify app                             
8:41:52 PM: ────────────────────────────────────────────────────────────────
8:41:52 PM: ​
8:41:52 PM: $ yarn build
8:41:52 PM: yarn run v1.22.10
8:41:52 PM: $ nuxt build
8:41:52 PM: [log] Nuxi 3.0.0-rc.9
8:41:52 PM: [log] Nuxt 3.0.0-rc.9 with Nitro 0.5.0
8:41:57 PM: [warn] `autoImports:sources` hook is deprecated. Use `imports:sources` with `nuxt>=3.0.0-rc.9`.
8:41:58 PM: [warn] `autoImports:extend` hook is deprecated. Use `addImports()` from `@nuxt/kit` or `imports:extend` with `nuxt>=3.0.0-rc.9`.
8:42:04 PM: [error] [vite:load-fallback] Could not load /opt/build/repo/store/Auth (imported by middleware/auth.ts): ENOENT: no such file or directory, open '/opt/build/repo/store/Auth'
8:42:04 PM: [error] Could not load /opt/build/repo/store/Auth (imported by middleware/auth.ts): ENOENT: no such file or directory, open '/opt/build/repo/store/Auth'
8:42:04 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
8:42:04 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
8:42:04 PM: ​
8:42:04 PM: ────────────────────────────────────────────────────────────────
8:42:04 PM:   "build.command" failed                                        
8:42:04 PM: ────────────────────────────────────────────────────────────────
8:42:04 PM: ​
8:42:04 PM:   Error message
8:42:04 PM:   Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
8:42:04 PM: ​
8:42:04 PM:   Error location
8:42:04 PM:   In Build command from Netlify app:
8:42:04 PM:   yarn build
8:42:04 PM: ​
8:42:04 PM:   Resolved config
8:42:04 PM:   build:
8:42:04 PM:     command: yarn build
8:42:04 PM:     commandOrigin: ui
8:42:04 PM:     publish: /opt/build/repo/dist
8:42:04 PM:     publishOrigin: ui
8:42:05 PM: Caching artifacts
8:42:05 PM: Started saving node modules
8:42:05 PM: Finished saving node modules
8:42:05 PM: Started saving build plugins
8:42:05 PM: Finished saving build plugins
8:42:05 PM: Started saving yarn cache
8:42:07 PM: Finished saving yarn cache
8:42:07 PM: Started saving pip cache
8:42:07 PM: Finished saving pip cache
8:42:07 PM: Started saving emacs cask dependencies
8:42:07 PM: Finished saving emacs cask dependencies
8:42:07 PM: Started saving maven dependencies
8:42:07 PM: Finished saving maven dependencies
8:42:07 PM: Started saving boot dependencies
8:42:07 PM: Finished saving boot dependencies
8:42:07 PM: Started saving rust rustup cache
8:42:07 PM: Finished saving rust rustup cache
8:42:07 PM: Started saving go dependencies
8:42:07 PM: Finished saving go dependencies
8:42:07 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:42:08 PM: Creating deploy upload records
8:42:08 PM: Failing build: Failed to build site
8:42:08 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
8:42:08 PM: Finished processing build request in 47.552442622s

@weellingtonc , thanks for posting your problem.

Based on your log if seems you are using yarn to build your project on your local computer.

If you are deploying a new app from GitHub to Netlify, once you arrive on the “Build options, and deploy!” settings interface, set your build command and publish directory to the settings below depending on your version of Nuxt.js.

Alternatively if you are using the Netlify CLI to deploy your app, your netlify.toml file in the project root needs to have the build command and publish directory to the below settings depending on your version of Nuxt.js

  • Nuxt 2
    • Build command: nuxt generate
    • Publish directory: dist
  • Nuxt 3 (beta)
    • Build command: nuxt build
    • Publish directory: dist

Let me know if the suggestions above works.

Hope this helps

Hello, thanks for the answer, unfortunately the error persists even after the changes, as you can see in the log.
It doesn’t make much sense to me, because the file exists, what I imagine is that it doesn’t copy all the files into netlify.

6:34:03 PM: Build ready to start
6:34:05 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
6:34:05 PM: build-image tag: v4.10.1
6:34:05 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390
6:34:05 PM: Building without cache
6:34:05 PM: Starting to prepare the repo for build
6:34:05 PM: No cached dependencies found. Cloning fresh repo
6:34:05 PM: git clone git@gitlab.com:weellingtonc/cubo-next
6:34:07 PM: Preparing Git Reference refs/heads/main
6:34:08 PM: Parsing package.json dependencies
6:34:08 PM: Starting build script
6:34:08 PM: Installing dependencies
6:34:08 PM: Python version set to 2.7
6:34:09 PM: Downloading and installing node v16.17.0...
6:34:09 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
6:34:09 PM: Computing checksum with sha256sum
6:34:09 PM: Checksums matched!
6:34:11 PM: Now using node v16.17.0 (npm v8.15.0)
6:34:11 PM: Started restoring cached build plugins
6:34:11 PM: Finished restoring cached build plugins
6:34:11 PM: Attempting ruby version 2.7.2, read from environment
6:34:12 PM: Using ruby version 2.7.2
6:34:12 PM: Using PHP version 8.0
6:34:12 PM: Started restoring cached yarn cache
6:34:12 PM: Finished restoring cached yarn cache
6:34:12 PM: No yarn workspaces detected
6:34:12 PM: Started restoring cached node modules
6:34:12 PM: Finished restoring cached node modules
6:34:12 PM: Installing NPM modules using Yarn version 1.22.10
6:34:13 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
6:34:13 PM: npm WARN config location in the cache, and they are managed by
6:34:13 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
6:34:13 PM: yarn install v1.22.10
6:34:13 PM: [1/5] Validating package.json...
6:34:13 PM: [2/5] Resolving packages...
6:34:13 PM: [3/5] Fetching packages...
6:34:24 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
6:34:24 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info @esbuild/linux-loong64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "@esbuild/linux-loong64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-android-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-arm64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-android-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-darwin-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-darwin-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-darwin-arm64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-darwin-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-darwin-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-freebsd-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-freebsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-freebsd-arm64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-freebsd-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-freebsd-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-linux-32@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-32@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-arm@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-arm@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-mips64le@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-mips64le@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-ppc64le@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-ppc64le@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-riscv64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-riscv64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-s390x@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-s390x@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-netbsd-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-netbsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-openbsd-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-openbsd-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-sunos-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-sunos-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-32@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-32@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-32@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-windows-64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-arm64@0.15.6: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-arm64@0.15.6" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-arm64@0.15.6: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: warning vscode-languageclient@7.0.0: The engine "vscode" appears to be invalid.
6:34:24 PM: info @esbuild/linux-loong64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "@esbuild/linux-loong64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-android-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-arm64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-android-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-android-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-darwin-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-darwin-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-darwin-arm64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-darwin-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-darwin-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-freebsd-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-freebsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-freebsd-arm64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-freebsd-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-freebsd-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-linux-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-arm@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-arm@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-mips64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-mips64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-ppc64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-ppc64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-riscv64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-riscv64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-linux-s390x@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info "esbuild-linux-s390x@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-netbsd-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-netbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-openbsd-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-openbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-sunos-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-sunos-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-32@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: info esbuild-windows-64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-arm64@0.14.54: The platform "linux" is incompatible with this module.
6:34:24 PM: info "esbuild-windows-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
6:34:24 PM: info esbuild-windows-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
6:34:24 PM: [4/5] Linking dependencies...
6:34:24 PM: warning " > @fullcalendar/vue3@5.11.2" has unmet peer dependency "vue@^3.0.11".
6:34:24 PM: warning " > pinia@2.0.21" has unmet peer dependency "vue@^2.6.14 || ^3.2.0".
6:34:24 PM: warning "@vuelidate/core > vue-demi@0.13.11" has unmet peer dependency "vue@^3.0.0-0 || ^2.6.0".
6:34:24 PM: warning " > form-wizard-vue3@0.3.3" has unmet peer dependency "vue@3.x".
6:34:24 PM: warning " > primevue@3.16.2" has unmet peer dependency "vue@^3.0.0".
6:34:24 PM: warning " > sass-loader@10.3.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
6:34:24 PM: warning " > vue-currency-input@3.0.0" has unmet peer dependency "vue@^2.7 || ^3.0.0".
6:34:24 PM: warning " > vue-prism-editor@2.0.0-alpha.2" has unmet peer dependency "vue@^3.0.0".
6:34:24 PM: warning " > vue-toastification@2.0.0-rc.5" has unmet peer dependency "vue@^3.0.2".
6:34:24 PM: warning " > vuedraggable@4.1.0" has unmet peer dependency "vue@^3.0.1".
6:34:27 PM: [5/5] Building fresh packages...
6:34:29 PM: Done in 16.47s.
6:34:29 PM: NPM modules installed using Yarn
6:34:29 PM: Started restoring cached go cache
6:34:29 PM: Finished restoring cached go cache
6:34:29 PM: Installing Go version 1.17 (requested 1.17)
6:34:33 PM: unset GOOS;
6:34:33 PM: unset GOARCH;
6:34:33 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
6:34:33 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
6:34:33 PM: go version >&2;
6:34:33 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
6:34:33 PM: go version go1.17 linux/amd64
6:34:33 PM: Installing missing commands
6:34:33 PM: Verify run directory
6:34:34 PM: ​
6:34:34 PM: ────────────────────────────────────────────────────────────────
6:34:34 PM:   Netlify Build                                                 
6:34:34 PM: ────────────────────────────────────────────────────────────────
6:34:34 PM: ​
6:34:34 PM: ❯ Version
6:34:34 PM:   @netlify/build 27.16.1
6:34:34 PM: ​
6:34:34 PM: ❯ Flags
6:34:34 PM:   baseRelDir: true
6:34:34 PM:   buildId: 631519cb6702a73ca989dbc4
6:34:34 PM:   deployId: 631519cb6702a73ca989dbc6
6:34:34 PM: ​
6:34:34 PM: ❯ Current directory
6:34:34 PM:   /opt/build/repo
6:34:34 PM: ​
6:34:34 PM: ❯ Config file
6:34:34 PM:   No config file was defined: using default values.
6:34:34 PM: ​
6:34:34 PM: ❯ Context
6:34:34 PM:   production
6:34:34 PM: ​
6:34:34 PM: ────────────────────────────────────────────────────────────────
6:34:34 PM:   1. Build command from Netlify app                             
6:34:34 PM: ────────────────────────────────────────────────────────────────
6:34:34 PM: ​
6:34:34 PM: $ nuxt build
6:34:35 PM: [log] Nuxi 3.0.0-rc.9
6:34:35 PM: [log] Nuxt 3.0.0-rc.9 with Nitro 0.5.0
6:34:39 PM: [warn] `autoImports:sources` hook is deprecated. Use `imports:sources` with `nuxt>=3.0.0-rc.9`.
6:34:39 PM: [warn] `autoImports:extend` hook is deprecated. Use `addImports()` from `@nuxt/kit` or `imports:extend` with `nuxt>=3.0.0-rc.9`.
6:34:46 PM: [error] [vite:load-fallback] Could not load /opt/build/repo/store/Auth (imported by middleware/auth.ts): ENOENT: no such file or directory, open '/opt/build/repo/store/Auth'
6:34:46 PM: [error] Could not load /opt/build/repo/store/Auth (imported by middleware/auth.ts): ENOENT: no such file or directory, open '/opt/build/repo/store/Auth'
6:34:46 PM: ​
6:34:46 PM: ────────────────────────────────────────────────────────────────
6:34:46 PM:   "build.command" failed                                        
6:34:46 PM: ────────────────────────────────────────────────────────────────
6:34:46 PM: ​
6:34:46 PM:   Error message
6:34:46 PM:   Command failed with exit code 1: nuxt build
6:34:46 PM: ​
6:34:46 PM:   Error location
6:34:46 PM:   In Build command from Netlify app:
6:34:46 PM:   nuxt build
6:34:46 PM: ​
6:34:46 PM:   Resolved config
6:34:46 PM:   build:
6:34:46 PM:     command: nuxt build
6:34:46 PM:     commandOrigin: ui
6:34:46 PM:     publish: /opt/build/repo/dist
6:34:46 PM:     publishOrigin: ui
6:34:46 PM: Caching artifacts
6:34:46 PM: Started saving node modules
6:34:46 PM: Finished saving node modules
6:34:46 PM: Started saving build plugins
6:34:46 PM: Finished saving build plugins
6:34:46 PM: Started saving yarn cache
6:34:48 PM: Finished saving yarn cache
6:34:48 PM: Started saving pip cache
6:34:48 PM: Finished saving pip cache
6:34:48 PM: Started saving emacs cask dependencies
6:34:48 PM: Finished saving emacs cask dependencies
6:34:48 PM: Started saving maven dependencies
6:34:48 PM: Finished saving maven dependencies
6:34:48 PM: Started saving boot dependencies
6:34:48 PM: Finished saving boot dependencies
6:34:48 PM: Started saving rust rustup cache
6:34:48 PM: Finished saving rust rustup cache
6:34:48 PM: Started saving go dependencies
6:34:48 PM: Finished saving go dependencies
6:34:49 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:34:49 PM: Creating deploy upload records
6:34:49 PM: Failing build: Failed to build site
6:34:49 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:34:49 PM: Finished processing build request in 44.27998045s

Hey @weellingtonc

Have you checked the case of the filename you are importing?

As the repository it private it is not possible to check, but I have seen instances in these forums where a filename will have a different case in a remote git repository than it does locally.

2 Likes

You are absolutely right!
For some reason the name in git is different, from some files, which is crazy.