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

[Bug]: Install template command missing "type":"module" in package.json #944

Open
panchi64 opened this issue Nov 4, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working pending review Awaiting review by team members.

Comments

@panchi64
Copy link

panchi64 commented Nov 4, 2024

📝 Issue Description

When running the Typescript template installation scripts with Bun the package.json that gets generated is missing the "type": "module" attribute. Causing vite to fail when trying to run the bun dev command with the following error:

bun dev    
$ vite
failed to load config from /home/REDACTED/front-end/vite.config.ts
error when starting dev server:
TypeError: require() async module "/home/REDACTED/front-end/vite.config.ts" is unsupported. use "await import()" instead.
    at <anonymous> (/home/REDACTED/front-end/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:66709:17)
    at processTicksAndRejections (native:7:39)

📋 On which page(s) it occurs

https://docs.solidjs.com/quick-start

🤔 Expected Behavior

A correctly generated package.json that does not cause any errors when attempting to launch the development server.

👀 Current Behavior

A package.json is generated with a missing "type":"module" attribute, causing vite to fail when launching the development server.

🖥️ Browser

Firefox 132.0 (64-bit)

📄 Additional Information

No response

@panchi64 panchi64 added bug Something isn't working pending review Awaiting review by team members. labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending review Awaiting review by team members.
Projects
None yet
Development

No branches or pull requests

3 participants