Closed lovedder1995 closed 1 year ago
I'm on it!
EDIT: was able to reproduce.
Think I found the culprit here:
await moveArtifacts(
tempDir,
astroConfig.output === "server"
? astroConfig.build.client.pathname
: astroConfig.outDir.pathname
);
Is logging out the C:\\
path when it shouldn't be.
The build works properly with this:
const outputPath = astroConfig.output === "server"
? astroConfig.build.client.pathname
: astroConfig.outDir.pathname;
const normalizedPath = normalize(outputPath).replace('C:\\', '');
await moveArtifacts(tempDir, normalizedPath);
Ok should be fixed in 0.1.19 @lovedder1995
How to reproduce:
create src/components/counter.jsx
edit src/pages/index.astro
npx astro build
What I've found:
The error is caused when Qwik creates a
/.tmp-{serial}
folder in the root with the compiled code and then tries to move it to/dist
What I've tried to find the problem:
If I comment the function
checkPath
atnode_modules\fs-extra\lib\mkdirs\make-dir.js:12:3
to skip the path validation a get this error:But from here I get confused, What could be causing the issue?