services worker不能正常运行

来源:5-4 JWT原理与auth-provider实现

weixin_慕粉7142375

2021-01-15

安装完jira-dev-tool以后,浏览器运行时报错


The mocking is still enabled, but it's highly recommended that you update your Service Worker by running:

$ npx msw init <PUBLIC_DIR>

This is necessary to ensure that the Service Worker is in sync with the library to guarantee its stability.
If this message still persists after updating, please report an issue: https://github.com/open-draft/msw/issues    

然后运行 npx msw init ./public 以后错误消失,但不论是/login还是/register均显示mock failed

图片描述

写回答

2回答

赵日天l

2021-01-20

...

1
0

weixin_慕粉7142375

提问者

2021-01-15

More error details here

//img.mukewang.com/szimg/600193bf0907a75a08760597.jpg

0
5
weixin_慕粉7142375
回复
Nolan
原来这样,刚测试了一下成功了!感谢!
2021-01-18
共5条回复

React17+Hook+TS4 优质实践,仿 Jira 企业级项目

解锁 React17 高阶用法,轻松应对大型复杂长周期项目

2691 学习 · 1236 问题

查看课程