Skip to content

(create-vite) Creating a project using Marko doesn't work #21353

@fgclue

Description

@fgclue

Describe the bug

If you run npm create vite@latest and select Marko, it fails saying that the folder already exists:

✖ Project path already exists '/home/lost/playground/other/framework-test/marko_'

Error: Project path already exists '/home/lost/playground/other/framework-test/marko_'
    at assertAllGood (/home/lost/.npm/_npx/9847185164d43527/node_modules/@marko/create/dist/index.js:113:11)
    at async create (/home/lost/.npm/_npx/9847185164d43527/node_modules/@marko/create/dist/index.js:51:3)
    at async run (/home/lost/.npm/_npx/9847185164d43527/node_modules/@marko/create/dist/cli.js:151:9)

The result is an empty folder. I assume vite is creating a folder before running the Marko Run tool.

Steps to reproduce

  1. Run npm create vite@latest.
  2. Select Marko
  3. Select Marko Run
  4. Continue through the options until the last one and select the Default Starter App template.

System Info

System:
    OS: Linux 6.17 Arch Linux
    CPU: (12) x64 AMD Ryzen 5 5600G with Radeon Graphics
    Memory: 24.60 GB / 30.72 GB
    Container: Yes
    Shell: 5.3.8 - /bin/bash
  Binaries:
    Node: 23.9.0 - /run/user/1000/fnm_multishells/176235_1767149654966/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 11.3.0 - /run/user/1000/fnm_multishells/176235_1767149654966/bin/npm
    Deno: 2.1.1 - /home/lost/.deno/bin/deno
  Browsers:
    Chromium: 143.0.7499.109
    Firefox: 146.0
    Firefox Developer Edition: 146.0

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: create-vitecreate-vite packagep2-edge-caseBug, but has workaround or limited in scope (priority)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions