Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Support for Vite 2.3 #135

Closed
Rkallenkoot opened this issue May 11, 2021 · 3 comments · Fixed by #138
Closed

Support for Vite 2.3 #135

Rkallenkoot opened this issue May 11, 2021 · 3 comments · Fixed by #138
Labels
enhancement New feature or request

Comments

@Rkallenkoot
Copy link

Broken since vite 2.3, but seems to be working with vite 2.2

ERROR The request url "/home/user/Code/nuxtsite/node_modules/.vite/vue.js" is outside of vite dev server root "/home/user/Code/nuxtsite/.nuxt".
For security concerns, accessing files outside of workspace root is restricted since Vite v2.3.x.
Refer to docs https://vitejs.dev/config/#server-fsserveroot for configurations and more details.

Versions

nuxt-vite: 0.0.37
nuxt: 2.15.5
vite: 2.3

Reproduction

Basic Nuxt app with versions above, should throw errors on nuxt dev

Description

Adding "vite": "~2.2.0" in package.json will temporarily fix it

@Rkallenkoot Rkallenkoot added the bug Something isn't working label May 11, 2021
@pi0 pi0 added enhancement New feature or request and removed bug Something isn't working labels May 11, 2021
@pi0
Copy link
Member

pi0 commented May 11, 2021

Added pinned dependency in 0.0.39 as a quick fix. Will work on 2.3 support :) (PR welcome if you already found a solution)

@pi0 pi0 mentioned this issue May 12, 2021
@Rkallenkoot
Copy link
Author

Sorry, not too familiar with the codebase. Just stumbled upon the 'issue' so thought I'd report as best as I could. Happy to test the PR tho!

@pi0 pi0 closed this as completed in #138 May 25, 2021
@pi0
Copy link
Member

pi0 commented May 25, 2021

Updated in v0.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants