Try this out:
nuxt.config.js
build: {
plugins: [
new webpack.ProvidePlugin({
'$': 'jquery',
'jQuery': 'jquery'
})
]
}
为什么这样写 强制刷新 会出现$无法找到的问题 官网文档也是这样写的啊


@18717700273 你直接使用npm的jquery吧,然后配置vender打包到一起
为什么会出现这样的问题
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Try this out:
nuxt.config.js