dc7290 / astro-fonts-next

Astro integration that works the same way as Next.js font optimization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENOENT: no such file or directory

silveltman opened this issue · comments

Getting the following error:

ENOENT: no such file or directory, open '\C:\Users\silve\Documents\Web%20dev\astro\astro-webtunus\node_modules\astro-fonts-next\dist\urls.json'

@silveltman

Thank you for issuing the issue.
Can you provide a reproducible repository so we can review the issue?

commented

error ENOENT: no such file or directory, open '\C:\Users\anton\Code\dev\astro-ulem\node_modules.pnpm\astro-fonts-next@1.0.2_astro@1.0.0-beta.72\node_modules\astro-fonts-next\dist\urls.json'

at Object.openSync (node:fs:585:3)
at writeFileSync (node:fs:2170:35)
at Object.astro:config:setup (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro-fonts-next@1.0.2_astro@1.0.0-beta.72/node_modules/astro-fonts-next/dist/index.js:52:21)
at Object.openSync (node:fs:585:3)
at writeFileSync (node:fs:2170:35)
at Object.astro:config:setup (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro-fonts-next@1.0.2_astro@1.0.0-beta.72/node_modules/astro-fonts-next/dist/index.js:52:21)
at runHookConfigSetup (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro@1.0.0-beta.72/node_modules/astro/dist/integrations/index.js:41:52)
at async dev (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro@1.0.0-beta.72/node_modules/astro/dist/core/dev/index.js:19:12)
at async runCommand (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro@1.0.0-beta.72/node_modules/astro/dist/cli/index.js:105:7)
at async cli (file:///C:/Users/anton/Code/dev/astro-ulem/node_modules/.pnpm/astro@1.0.0-beta.72/node_modules/astro/dist/cli/index.js:127:5)

 ELIFECYCLE  Command failed with exit code 1.

When creating dirname, the method was not cross-platform compatible, so it has been corrected.

🎉 This issue is included in version v1.0.3.

commented

Arigatou