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

tsx >4.11.2 is broken when running vite #590

Closed
4 tasks done
o-alexandrov opened this issue Jun 14, 2024 · 2 comments
Closed
4 tasks done

tsx >4.11.2 is broken when running vite #590

o-alexandrov opened this issue Jun 14, 2024 · 2 comments
Labels

Comments

@o-alexandrov
Copy link

o-alexandrov commented Jun 14, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I am reporting a confirmed bug (not seek debugging help)
  • I understand this is a collaborative project and relies on my contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://github.com/o-alexandrov/bug-tsx-vite

Problem & expected behavior (under 200 words)

To reproduce:

  1. clone example & install deps
  2. run npm run start

see error in cli:

tsx ./node_modules/vite/bin/vite.js

import { defineConfig } from "vite";

export default defineConfig({});

tsx ./node_modules/vite/bin/vite.js

failed to load config from ./vite.config.ts
error when starting dev server:
TypeError: Cannot assign to read only property '.ts' of object '[object Object]'
    at loadConfigFromBundledFile (./node_modules/vite/dist/node/chunks/dep-h78lQ5BT.js:66923:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at loadConfigFromFile (./node_modules/vite/dist/node/chunks/dep-h78lQ5BT.js:66754:24)
    at resolveConfig (./node_modules/vite/dist/node/chunks/dep-h78lQ5BT.js:66364:24)
    at _createServer (./node_modules/vite/dist/node/chunks/dep-h78lQ5BT.js:62977:18)
    at CAC.<anonymous> (./node_modules/vite/dist/node/cli.js:735:20)
@o-alexandrov o-alexandrov added bug Something isn't working pending triage labels Jun 14, 2024
@o-alexandrov o-alexandrov changed the title tsx is broken after 4.11.2 tsx is broken when running vite after 4.11.2 Jun 14, 2024
@o-alexandrov o-alexandrov changed the title tsx is broken when running vite after 4.11.2 tsx >4.11.2 is broken when running vite Jun 14, 2024
@privatenumber
Copy link
Owner

🎉 This issue has been resolved in v4.15.5

If you rely on this project, please consider making a donation ❤️ 🙏

@privatenumber
Copy link
Owner

Appreciate you always filing great bug reports @o-alexandrov 🙌

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants