当我尝试通过注册用户登录时,它显示此错误



这是我面临的错误,我正在做一个迷你项目,用这个 youtube 链接可以更好地解释 - https://www.youtube.com/watch?v=Zzs2CzovhEI&list=PLUVqY59GNZQP8SlrFewicML2dSAUxBfAS

我在第四讲中发现了错误

无法读取未定义的属性"toString" 类型错误: 无法读取未定义的属性"toString" at LocalStorage.setItem (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modulesode-localstorage\LocalStorage.js:176:27) at C:\Users\RadheKrishna\Desktop\RPROJECT\Rproject\routes\index.js:49:31 at Layer.handle [as handle_request] (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\layer.js:95:5) at next (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\Users\RadheKrishna\Desktop\RPROJECT\Rproject\Rprojectode_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\layer.js:95:5) at C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:335:12) at next (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:275:10) at Function.handle (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:174:3) at router (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:47:12) at Layer.handle [as handle_request] (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:317:13) at C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules express\lib\router\index.js:284:7 at Function.process_params (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules\express\lib\router\index.js:335:12) at next (C:\Users\RadheKrishna\Desktop\RPROJECT\Rprojectode_modules express\lib\router\index.js:275:10)

这意味着.

toString()

方法不起作用。你能不能更详细一点,也粘贴代码。

相关内容

  • 没有找到相关文章

最新更新