gpt4 book ai didi

javascript - 使用 react-aad-msal 时 chokidar 出错

转载 作者:行者123 更新时间:2023-12-04 09:35:51 25 4
gpt4 key购买 nike

我正在使用天蓝色的事件目录,我得到这个奇怪的模块未找到错误,然后是一个 chokidar 错误:

./node_modules/react-aad-msal/dist/commonjs/MsalAuthProvider.js
Module not found: Can't resolve 'msal' in 'C:\Users\paull\Monitoring_SOT\monitoring_sot\node_modules\react-aad-msal\dist\commonjs'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'
这部分的目的是创建一个 authProvider。
我正在使用 create-react-app,这是我的 authProvider。使用所有内容的最新版本。
    //Configuration
const config = {
auth: {
authority: 'https://login.microsoftonline.com/common',
clientId: '<clientid>',
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: true
}
};
//Paramètres
const authenticationParameters = {
scopes: [
'profile.read'
]
};
//Options
const options = {
loginType: LoginType.Redirect
}
export const authProvider = new MsalAuthProvider(config, authenticationParameters, options)

最佳答案

实际上,当您安装 npm react-aad-msal 时,它不会将 msal 依赖项添加到您的项目中。
你应该这样做 npm i msal把它放在这里让人们知道

关于javascript - 使用 react-aad-msal 时 chokidar 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62593327/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com