Skip to content

fix: [vite-plugin-hot] Failed to import "/@vite/client" when using nuxt.config "app/buildAssetsDir" #384

@edgarrroussille

Description

@edgarrroussille

🐛 The bug

Nuxt devtools doesn't load and console throws some errors, especially the [vite-plugin-hot] Failed to import "/@vite/client" one. Even after this commit.

We're using a custom value for buildAssetsDir.

Solution: when commenting out this buildAssetsDir, everything works. So maybe just getting that value from config when loading the Vite client ?

🛠️ To reproduce

https://stackblitz.com/edit/github-cwjhut?file=nuxt.config.ts

🌈 Expected behavior

Devtools should load even when using a custom buildAssetsDir path

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions