remove compiler warnings from build and chrome
Remove all warnings from compilation and those shown in google chrome.
- The application build shows the following warnings:
./src/index.tsx
Line 12:10: 'initProxy' is defined but never used @typescript-eslint/no-unused-vars
./src/components/dao/PlutusDaoState.tsx
Line 14:3: 'Accordion' is defined but never used @typescript-eslint/no-unused-vars
Line 15:3: 'AccordionDetails' is defined but never used @typescript-eslint/no-unused-vars
Line 16:3: 'AccordionSummary' is defined but never used @typescript-eslint/no-unused-vars
Line 21:8: 'ExpandMoreIcon' is defined but never used @typescript-eslint/no-unused-vars
./src/store/sagas/braidSaga.ts
Line 155:41: Expected to return a value in arrow function array-callback-return
./src/store/sagas/daoSaga.ts
Line 45:31: Expected to return a value in arrow function array-callback-return
- Google Chrome console shows the following warnings
[HMR] Waiting for update signal from WDS...
index.js:1 failed to load config from server. attempting to use the build time environment settings SyntaxError: Unexpected token < in JSON at position 0
console.<computed> @ index.js:1
ApplicationConfig.ts:17 config set to: {"apiUrl":"https://localhost:9085/api/","notaryName":"O=Notary, OU=Cordite Foundation, L=London, C=GB","cslName":"CN=csl.cordite.foundation, O=Cordite Society Limited, L=London, C=GB"}
webpackHotDevClient.js:138 ./src/index.tsx
Line 12:10: 'initProxy' is defined but never used @typescript-eslint/no-unused-vars
printWarnings @ webpackHotDevClient.js:138
webpackHotDevClient.js:138 ./src/components/dao/PlutusDaoState.tsx
Line 14:3: 'Accordion' is defined but never used @typescript-eslint/no-unused-vars
Line 15:3: 'AccordionDetails' is defined but never used @typescript-eslint/no-unused-vars
Line 16:3: 'AccordionSummary' is defined but never used @typescript-eslint/no-unused-vars
Line 21:8: 'ExpandMoreIcon' is defined but never used @typescript-eslint/no-unused-vars
printWarnings @ webpackHotDevClient.js:138
webpackHotDevClient.js:138 ./src/store/sagas/braidSaga.ts
Line 155:41: Expected to return a value in arrow function array-callback-return
printWarnings @ webpackHotDevClient.js:138
webpackHotDevClient.js:138 ./src/store/sagas/daoSaga.ts
Line 45:31: Expected to return a value in arrow function array-callback-return
printWarnings @ webpackHotDevClient.js:138
localhost/:1 [DOM] Found 2 elements with non-unique id #outlined-basic: (More info: https://goo.gl/9p2vKq) <input aria-invalid="false" id="outlined-basic" name="username" type="text" class="MuiInputBase-input-125 MuiOutlinedInput-input-112" value> <input aria-invalid="false" id="outlined-basic" name="password" type="password" class="MuiInputBase-input-125 MuiOutlinedInput-input-112" value>
localhost/:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input aria-invalid="false" id="outlined-basic" name="password" type="password" class="MuiInputBase-input-125 MuiOutlinedInput-input-112" value>
DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://mooikfkahbdckldjjndioackbalphokd/assets/atoms.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://mooikfkahbdckldjjndioackbalphokd/assets/polyfills.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://mooikfkahbdckldjjndioackbalphokd/assets/escape.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://mooikfkahbdckldjjndioackbalphokd/assets/playback.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://mooikfkahbdckldjjndioackbalphokd/assets/record.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/contentScript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
Edited by Mark Simpson