Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
cordite-ui
cordite-ui
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cordite
  • cordite-uicordite-ui
  • Issues
  • #40

Closed
Open
Opened Nov 09, 2020 by Mark Simpson@Bartman250Owner

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 Nov 09, 2020 by Mark Simpson
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cordite/cordite-ui#40