Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-react-app 的骨架 src/下已经没有文档描述的serviceWorker.js文件 #379

Closed
jartins opened this issue Oct 28, 2022 · 3 comments

Comments

@jartins
Copy link

jartins commented Oct 28, 2022

文档链接:https://landing.ant.design/docs/use/create-react-app-cn

问题阐述:

  1. 使用 create-react-app project
  2. project/src 下已经没有serviceWorker.js文件了

image

3. 导致入口文件使用最新的 reportWebVitals.js 会报错

image

@jljsj33
Copy link
Member

jljsj33 commented Oct 31, 2022

这是 create-react-app 自动生成的,,这里的意思是你只需把 app 的路径换成 home 就行了,,不要全部复制过来。,

@jljsj33 jljsj33 closed this as completed Oct 31, 2022
@jartins
Copy link
Author

jartins commented Oct 31, 2022

image

image

按部就班的依照文档做的操作 确定的确有问题 是因为create-react-app的版本问题吗

@jartins
Copy link
Author

jartins commented Oct 31, 2022

#365 解决了我的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants