Skip to content

Deno + Vite: TS starter working but not JS #377

@mbrahimi02

Description

@mbrahimi02

Describe the bug

I'm creating a deno project with site using deno run -A npm:create-vite-extra and all works fine if I select the TS project. If I select the JS project, I get the following despite the fact that types are installed and configured by default:

TypeError: createRoot is not a function. (In 'createRoot(document.getElementById("root"))', 'createRoot' is undefined)

Reproduction

I can't add bc there's no way to select runtime

Steps to reproduce

deno run -A npm:create-vite-extra with JavaScript project

System Info

System:
    OS: macOS 15.0.1
    CPU: Unknown
    Memory: 48.11 KB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Safari: 18.0.1

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions