NuxtN
Nuxt16mo ago
17 replies
Jonas

Couldn't resolve component "default" at "/"

------------------------------
- Operating System: Windows_NT
- Node Version: v18.19.0
- Nuxt Version: 3.13.2
- CLI Version: 3.14.0
- Nitro Version: 2.9.7
- Package Manager: pnpm@9.1.1
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
------------------------------

This is my project: https://github.com/neptun-software/neptun.web. It worked fine, before I updated some packages using renovate.
Shiki worked fine in 3.13.0. My whole app worked.
I had many problems with vue-tsc and had to do this in the end:
  "pnpm": {
    "overrides": {
      "vue-tsc": "2.0.29",
    }
  }


I had to set componentInspector: false, but I would like to use it.
I had to exlude shiki from rollup, but that somehow killed other parts of my app:
  vite: {
    logLevel: 'warn', // 'info' | 'warn' | 'error' | 'silent'
    plugins: [
      wasm(),
      topLevelAwait(),
      removeConsole()
    ],
    css: {
      preprocessorOptions: {
        sass: {
          api: 'modern-compiler'
        }
      }
    },
    build: {
      rollupOptions: {
        external: ['env', 'wasi_snapshot_preview1'],
        // external: [/.*shiki.*/],
      },
    },
    optimizeDeps: {
      exclude: ['shiki'],
    },
    assetsInclude: ['**/*.wasm'],
  }


How do I fix this nightmare of problems?
I am currently struggling to get it working again.
I wanted to update to v 3.13.2, because people said vite-plugin-checker works in that version...
The weird thing is, that everything worked for 2 months.
image.png
Was this page helpful?