Skip to content

v6 dev server crashes due to path being truncated #1718

Description

@OfficialCRUGG

I have just created a new maizzle v6 project using pnpx maizzle new. It's on v6.0.0-rc.11.

When I try to launch the dev server using pnpm dev, it crashes because of a "no such file or directory" error.

The odd thing: This is because the actual path is somehow being truncated in the middle:

  • When my project is located in A:\Code\company-name\mails, it tries to access A:\Code\company\dist.
  • When my project is located in A:\Code\test, it tries to access A:\Code\test\no\dist
  • When my project is located in A:\a, it tries to access A:\a\node_modul\dist
    (Same happens on the C:\ drive)

Output:

> @ dev A:\Code\company-name\mails
> maizzle serve

Cannot optimize dependency: vue-router, present in client 'optimizeDeps.include'
Cannot optimize dependency: lucide-vue-next, present in client 'optimizeDeps.include'
Cannot optimize dependency: @vueuse/core, present in client 'optimizeDeps.include'
Cannot optimize dependency: @vueuse/shared, present in client 'optimizeDeps.include'
Cannot optimize dependency: reka-ui, present in client 'optimizeDeps.include'
Cannot optimize dependency: class-variance-authority, present in client 'optimizeDeps.include'
Cannot optimize dependency: clsx, present in client 'optimizeDeps.include'
Cannot optimize dependency: tailwind-merge, present in client 'optimizeDeps.include'
node:internal/fs/promises:642
  return new FileHandle(await PromisePrototypeThen(
                        ^

Error: ENOENT: no such file or directory, open 'A:\Code\company\dist\vue.runtime.esm-bundler.js'
    at async open (node:internal/fs/promises:642:25)
    at async Object.readFile (node:internal/fs/promises:1279:14)
    at async extractExportsData (file:///A:/Code/company-name/mails/node_modules/.pnpm/vite@7.3.2_jiti@2.6.1_lightningcss@1.32.0_yaml@2.8.3/node_modules/vite/dist/node/chunks/config.js:32274:23)
    at async file:///A:/Code/company-name/mails/node_modules/.pnpm/vite@7.3.2_jiti@2.6.1_lightningcss@1.32.0_yaml@2.8.3/node_modules/vite/dist/node/chunks/config.js:32081:23
    at async Promise.all (index 0)
    at async prepareEsbuildOptimizerRun (file:///A:/Code/company-name/mails/node_modules/.pnpm/vite@7.3.2_jiti@2.6.1_lightningcss@1.32.0_yaml@2.8.3/node_modules/vite/dist/node/chunks/config.js:32079:2) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'A:\\Code\\company\\dist\\vue.runtime.esm-bundler.js'
}

Aditional info:

  • Windows 25H2
  • pnpm 10.33.0
  • Node v24.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions