每次我试图在gitlab上启动nuxt项目的generate项目时,我都会返回到每个生成奇怪错误的页面,
[error] /Dashboard
TypeError: external_defu_ is not a function
at server.js:12669:45
at Array.reduce (<anonymous>)
at new runtime_BaseScheme (node_modules/@nuxtjs/auth-next/dist/runtime.mjs:883:0)
at new runtime_Oauth2Scheme
我刚刚在我的项目上安装了@nuxtjs/auth。
我上Property '$auth' does not exist on type 'AuthLoginPage'课。
方法在登录类页面上登录。
this.$auth.loginWith('local', {
data: {
username: 'your_username',
password: 'your_password'
}
});
我的nuxt.config.ts
mod
我目前正在将nuxt auth模块集成到我的应用程序中,并且当我运行
npm运行开发
我正面临一个致命的错误
(node_modules@nuxtjs\auth-next\dist\module.js:485:21) at resolveStrategies (node_modules@nuxtjs\auth-next\dist\module.js:464:26) at ModuleContainer.authModule (node_modules@nuxtjs\auth-next\dist\module.js:515:42) at ModuleContainer.addModule (
我有一个使用Nuxt和@nuxtjs/auth构建的SPA,它被配置为通过nuxt-auth中内置的Auth0提供程序连接到Auth0。通过yarn dev通过webpack的服务器查看的结果应用程序在登录后会有一个重定向循环。登录成功,但页面随后被重定向回/callback url以再次通过OAuth流。
这是我的nuxt.config.js:
import colors from 'vuetify/es5/util/colors'
import dotenv from 'dotenv'
// Get env vars
dotenv.config()
ex
当我运行npm view @nuxtjs/auth dist-tags时,我得到的是{ latest: '4.9.1' },开发版本没有列出。我们应该如何安装它?
$ npm install @nuxtjs/auth@beta
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @nuxtjs/auth@beta.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! n