-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[🐞] vite preview fails with vite template starters #4880
Comments
Bumping to say this is still an issue - it looks like the I'm not at all familiar with this repo, so all I can say is that when I create the qwik typescript app (no qwikcity) with vite, it looks like if (!qwikViteOpts.csr) {
clientOutDir = qwikPlugin.normalizePath(
sys.path.resolve(
opts.rootDir,
qwikViteOpts.client?.outDir || CLIENT_OUT_DIR
)
);
clientPublicOutDir = viteConfig.base
? path.join(clientOutDir, viteConfig.base)
: clientOutDir;
// ------ THIS BIT HERE ------
ssrOutDir = qwikPlugin.normalizePath(
sys.path.resolve(
opts.rootDir,
qwikViteOpts.ssr?.outDir || SSR_OUT_DIR
)
);
clientDevInput =
"string" === typeof qwikViteOpts.client?.devInput
? path.resolve(opts.rootDir, qwikViteOpts.client.devInput)
: opts.srcDir
? path.resolve(opts.srcDir, CLIENT_DEV_INPUT)
: path.resolve(opts.rootDir, "src", CLIENT_DEV_INPUT);
clientDevInput = qwikPlugin.normalizePath(clientDevInput);
} This is the only place that gives |
Is this fixed? |
Any news? Demo here.
P.S: the code is taken from the official Vite + Qwik + TS template from the Vite docs. |
@supfiger I created a PR for that in the Vite repo, you can use that workaround. |
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I created a Qwik Typescript app with
pnpm create vite
the
preview
script doesn't workI have this error in the terminal
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
from this piece of code
Reproduction
https://stackblitz.com/github/vitejs/vite/tree/main/packages/create-vite/template-qwik?file=README.md
Steps to reproduce
pnpm create vite
in the terminalpnpm preview
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: