如何在NUXT 3中启用ReactiveTransform?
我想在NUXT 3(3.0.0-rc.3)中启用VUE 3实验功能ReactiveTiveTransform
。我已经尝试了提供的解决方案在这里而且我确实收到了以下错误:
Type '{ vue: { reactivityTransform: true; }; }' is not assignable to type 'UserConfig'.
这是我的nuxt.config.ts
文件:
import { defineNuxtConfig } from "nuxt";
export default defineNuxtConfig({
vite: {
vue: {
reactivityTransform: true
}
},
});
我对我做错了什么有任何想法吗?如何在NUXT 3中启用reactivitivityTransform
?
I want to enable Vue 3 experimental feature reactivityTransform
in Nuxt 3 (3.0.0-rc.3). I've tried the solution provided here, but it did not work and I did get the following error:
Type '{ vue: { reactivityTransform: true; }; }' is not assignable to type 'UserConfig'.
Here is my nuxt.config.ts
file:
import { defineNuxtConfig } from "nuxt";
export default defineNuxtConfig({
vite: {
vue: {
reactivityTransform: true
}
},
});
Any idea about what am I doing wrong? How can I enable reactivityTransform
in Nuxt 3?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,在NUXT 3(3.0.0-rc.3)的当前版本中,而不是在
nuxt.config
文件中修改VITE配置,我们应该添加一个实验性proprety; NUXT 3中的以下代码启用了reactivitiveTransform
:这是相关链接< /a>。
Apparently in the current version of Nuxt 3 (3.0.0-rc.3), instead of modifing the vite config in the
nuxt.config
file, we should add an experimental proprety; The following code enabledreactivityTransform
in Nuxt 3:Here is the related link.