8000 IDE types are broken after upgrade to 3.6.0 when using Docker (and WSL Webstorm) · Issue #21827 · nuxt/nuxt · GitHub
[go: up one dir, main page]

Skip to content
IDE types are broken after upgrade to 3.6.0 when using Docker (and WSL Webstorm) #21827
@daniluk4000

Description

@daniluk4000

Environment

  • Operating System: Linux
  • Node Version: v18.16.1
  • Nuxt Version: 3.6.1
  • Nitro Version: 2.5.1
  • Package Manager: yarn@3.6.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/daniluk4000/nuxt-3.4.2-docker-error

  1. Run docker-compose up
  2. Open app.vue with IDE and look at the imports
  3. Run sudo yarn dev (as Docker probably broke file system perms if you are not Mac user)
  4. Look at the fixed imports (using VS Code or non-WSL Webstorm)

Describe the bug

Before Nuxt 3.5.3 update tsconfig paths were generated relatively to current directory

image

But after Nuxt 3.6.0 update it now has absolute paths

image

And breaks IDE as Docker has different folder names inside of it:

image

Additional context

This also breaks Webstorm when using with WSL, it can't resolve imports as well even without using docker for me.

It would be so good, if this was made for some reason, to optionally opt-out and use relative paths.

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0