-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Internal server error" when root
option for Vite is used
#113
Comments
Can reproduce. Looks like one of the internal path resolver wasn't resolving properly when |
Hmm, if this worked before i suspect it happened when code to read root moved from going to take a closer look now. Please note that gitlab.com seems to require users to sign in prior to being able to visit/clone https://gitlab.com/winterkind/vite-project/ a reproduction accessible on github (or without requiring an additional login) would be preferred. ids should be rooted to vite root, so |
Apologies for the enforced GitLab registration. The project was set to private. I changed that now - a bit too late... |
This is indeed caused by the unresolved root. Fix coming soon, as a workaround you can do import {normalizePath} from 'vite';
import path from 'path';
...
config: {
...
root: normalizePath(path.resolve('./'))
} |
Describe the bug
When I set the
root
option in the Vite configuration and start the dev server, I get the server errorfailed to transform tagged svelte request for id
for several components.For example:
As far as I remember, this still worked with release
next.11
. In the demo project below for reproduction, the root option is just a dummy to show the issue. But I have other projects where I need to set the root option. There it blocks me from updating the plug-in.Reproduction
https://gitlab.com/winterkind/vite-project/
vite.config.ts
un-comment the root option (// root: "./",
)npm start
and openindex.html
in your browserLogs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: