These settings were made to integrate custom functions with the service worker.
Go to the serviceWorker file in the project and make the following change.
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
// to
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "attach", | |
| "protocol": "inspector", | |
| "restart": true, | |
| "name": "Debug", | |
| "skipFiles": ["<node_internals>/**"], |
| # check if you are in administration mode, if not, ask for authorization | |
| If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
| { | |
| $arguments = "& '" + $myinvocation.mycommand.definition + "'" | |
| Start-Process powershell -Verb runAs -ArgumentList $arguments | |
| Break | |
| } | |
| # get wsl intern ip | |
| $wsl_host = $(wsl hostname -I); |
| import { IconBaseProps } from 'react-icons/lib'; | |
| import loadable from '@loadable/component'; | |
| interface IPropsIcon { | |
| nameIcon: string; | |
| propsIcon?: IconBaseProps; | |
| } | |
| export default function LoadableIcon({ nameIcon, propsIcon }: IPropsIcon): JSX.Element { | |
| const lib = nameIcon |
.