我有一个使用 NuxtJs 的项目并使用 AlpineJs 来切换菜单。但是在我 npm install alpine js 并将其导入我的组件后,出现错误。
[Vue warn]: Failed to resolve async component: () => __webpack_require__.e(/*! import() | components/navbar */ "components/navbar").then(__webpack_require__.bind(null, /*! ../../components/Navbar.vue */ "./components/Navbar.vue")).then(c => c.default || c)
Reason: ReferenceError: navigator is not defined
如何在 Nuxt 项目中使用 AlpineJs?我已经尝试找到解决方案,但还没有找到。先谢谢了。