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

using require #20

Closed
Master-Y0da opened this issue Jul 29, 2021 · 1 comment
Closed

using require #20

Master-Y0da opened this issue Jul 29, 2021 · 1 comment

Comments

@Master-Y0da
Copy link

Master-Y0da commented Jul 29, 2021

How can I use require statement in typescript ?

I'm trying to use something like this const Store = require('some').Some , but I can't see anything on browser, app doesn't start because error require is not defined

@wobsoriano
Copy link
Owner

Vite doesn't support require. Check this plugin instead @originjs/vite-plugin-commonjs

vitejs/vite#3409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants