Skip to content
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

Mkdir fails #12

Open
HadiSDev opened this issue Oct 19, 2023 · 3 comments
Open

Mkdir fails #12

HadiSDev opened this issue Oct 19, 2023 · 3 comments

Comments

@HadiSDev
Copy link

Hi

I keep getting this error after adding the fuse() component to my astro config:

 error   EINVAL: invalid argument, mkdir '\C:\Users\<USER_NAME>\WebstormProjects\<PROJECT_NAME>\dist'
  File:
    C:\Users\<USER_NAME>\WebstormProjects\<PROJECT_NAME>\node_modules\astro-fuse\dist\chunk-PRXD3I6Q.mjs:255:5
  Code:
    254 |   if (!existsSync3(outDir)) {
    > 255 |     mkdirSync2(dirname2(outputPath));
          |     ^
      256 |     writeFileSync2(outputPath, "{}");
      257 |   }
      258 |   const result = /* @__PURE__ */ new Map();

Any ideas?

@johnny-mh
Copy link
Owner

Hi @HadiSDev, I am aware that there are compatibility issues with the processing of Windows path strings in Node.js.

I am not sure if the problem is due to this issue.

Would you mind creating a path c:/test and running the build command inside it without the help of WebStorm?

I apologize for the late reply.

@sbkbdigital
Copy link

Hi @HadiSDev. I get this error:

EINVAL: invalid argument, mkdir 'C:\C:\test\dist' Stack trace: at mkdirSync (node:fs:1382:26) at astro:build:done (file:///C:/test/node_modules/astro-fuse/dist/chunk-PRXD3I6Q.mjs:244:9) at async AstroBuilder.build (file:///C:/test/node_modules/astro/dist/core/build/index.js:147:5) at async build (file:///C:/test/node_modules/astro/dist/core/build/index.js:45:3) at async runCommand (file:///C:/test/node_modules/astro/dist/cli/index.js:124:7)

@wtto00
Copy link

wtto00 commented Dec 26, 2023

Hi, I got the same error. Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants