Godiswill / cra-crx-boilerplate

create-react-app eject 后改造的 Chrome 插件工程模板
33 stars 11 forks source link

Service Worker Registration #4

Open parthraghav opened 1 year ago

parthraghav commented 1 year ago

Hey, man! I am getting the following error when using your code:


index.js:583 [webpack-dev-server] Errors while compiling. Reload prevented.
logger @ index.js:583
index.js:583 [webpack-dev-server] ERROR

src/pages/content/index.ts
  Line 2:3:    Insert `··`                                                                                                               prettier/prettier
  Line 3:1:    Insert `····`                                                                                                             prettier/prettier
  Line 4:1:    Insert `····`                                                                                                             prettier/prettier
  Line 5:1:    Replace `····` with `········`                                                                                            prettier/prettier
  Line 6:3:    Insert `··`                                                                                                               prettier/prettier
  Line 7:1:    Replace `····console.log("[content.js].·Message·received"` with `········console.log('[content.js].·Message·received'`    prettier/prettier
  Line 8:1:    Replace `····sendResponse("received"` with `········sendResponse('received'`                                              prettier/prettier
  Line 9:1:    Replace `····if·(process.env.NODE_ENV·===·"development"` with `········if·(process.env.NODE_ENV·===·'development'`        prettier/prettier
  Line 10:1:   Replace `······if·(msg.type·===·"window.location.reload"` with `············if·(msg.type·===·'window.location.reload'`    prettier/prettier
  Line 11:1:   Replace `········console.log("current·page·will·reload."` with `················console.log('current·page·will·reload.'`  prettier/prettier
  Line 12:1:   Replace `········` with `················`                                                                                prettier/prettier
  Line 13:1:   Insert `······`                                                                                                           prettier/prettier
  Line 14:5:   Insert `····`                                                                                                             prettier/prettier
  Line 15:1:   Insert `··`                                                                                                               prettier/prettier
  Line 18:13:  Replace `"hello·2"` with `'hello·2'`                                                                                      prettier/prettier

Search for the keywords to learn more about each error.```
parthraghav commented 1 year ago

嘿,伙计!当我使用你的代码时,我遇到了以下错误。我在某个地方读到你不太熟悉英语,所以我正在使用翻译服务来用中文写这个。:)

Godiswill commented 1 year ago

Hi, Bro! It works for me. Looks like your ESLint settings conflict with me, please try to fix it by IDE or command line.