Skip to content

The require() code written in the .vue file does not work properly #66

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

Open
eleven-net-cn opened this issue Mar 24, 2025 · 1 comment
Open

Comments

@eleven-net-cn
Copy link

eleven-net-cn commented Mar 24, 2025

When I write the require code in the .vue file, it prompts that require is not defined.

The following location was traced in the source code:

Image

Image

In vite, the extensions parameter is not usually set, and the default value does not include .vue files

Is this a bug or a behavior that suits expectations?

@eleven-net-cn
Copy link
Author

Anybody see here?

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

1 participant