We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
node版本:v16.18.0 npm v8.19.2
不太懂引入的正确方式,希望可以指点一下
The text was updated successfully, but these errors were encountered:
看了之前别人提的issue,加上答复,问题解决了
因为我之前看见默认构建的时候
然后看下之前的issue说过这样配置有效(不知道下面的方法是否还是可行的)
Sorry, something went wrong.
你写的这个配置 不能解决 你遇到的这个问题
你的 react 代码是运行在 unsafeWindow 作用域下,这个作用域没有 GM_api ,因此会报未定义错误 这个问题有两种解决方法,我个人推荐第一种
import {GM_xxx} from 'vite-plugin-monkey/dist/client';
vite-plugin-monkey/dist/client
$
import {GM_xxx} from '$';
No branches or pull requests
node版本:v16.18.0 npm v8.19.2
不太懂引入的正确方式,希望可以指点一下
The text was updated successfully, but these errors were encountered: