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

require引入问题 #31

Open
KailaniYung opened this issue Dec 17, 2022 · 1 comment
Open

require引入问题 #31

KailaniYung opened this issue Dec 17, 2022 · 1 comment

Comments

@KailaniYung
Copy link

作者你好,
在uniapp开发中,使用vue2版本编译,var nzhcn = require("nzh/cn")正常,
使用vue3编译,报错:module 'pages/index/nzh/cn.js' is not defined, require args is 'nzh/cn'

看起来是路径问题,我改成相对路径依然还是报错,请问这个是哪里的问题呢。
前端小白一个,还请帮忙一下,谢谢

@KailaniYung
Copy link
Author

image

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