Skip to content

Fresh install showing multiple warnings on running app #1

@ShammyLevva

Description

@ShammyLevva

Compiled with warnings.

[eslint]
src/App.js
Line 2:31: 'useRef' is defined but never used no-unused-vars
Line 4:10: 'EBizCode' is defined but never used no-unused-vars
Line 5:29: 'getDeviceTopo' is defined but never used no-unused-vars
Line 6:24: 'Container' is defined but never used no-unused-vars
Line 6:35: 'useForceUpdate' is defined but never used no-unused-vars
Line 19:16: 'setZoom' is assigned a value but never used no-unused-vars

src/PilotApp.js
Line 7:16: 'Text' is defined but never used no-unused-vars
Line 43:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 44:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 45:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 46:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 47:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 80:6: React Hook useEffect has a missing dependency: 'setup'. Either include it or remove the dependency array react-hooks/exhaustive-deps

src/api/pilot.js
Line 1:10: 'HTTP_PREFIX' is defined but never used no-unused-vars
Line 344:5: Expected a 'break' statement before 'default' no-fallthrough

src/hooks/use-websocket.js
Line 27:6: React Hook useEffect has missing dependencies: 'onMessage' and 'webSocket'. Either include them or remove the dependency array react-hooks/exhaustive-deps

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in [eslint]
src/App.js
Line 2:31: 'useRef' is defined but never used no-unused-vars
Line 4:10: 'EBizCode' is defined but never used no-unused-vars
Line 5:29: 'getDeviceTopo' is defined but never used no-unused-vars
Line 6:24: 'Container' is defined but never used no-unused-vars
Line 6:35: 'useForceUpdate' is defined but never used no-unused-vars
Line 19:16: 'setZoom' is assigned a value but never used no-unused-vars

src/PilotApp.js
Line 7:16: 'Text' is defined but never used no-unused-vars
Line 43:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 44:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 45:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 46:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 47:5: React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
Line 80:6: React Hook useEffect has a missing dependency: 'setup'. Either include it or remove the dependency array react-hooks/exhaustive-deps

src/api/pilot.js
Line 1:10: 'HTTP_PREFIX' is defined but never used no-unused-vars
Line 344:5: Expected a 'break' statement before 'default' no-fallthrough

src/hooks/use-websocket.js
Line 27:6: React Hook useEffect has missing dependencies: 'onMessage' and 'webSocket'. Either include them or remove the dependency array react-hooks/exhaustive-deps

webpack compiled with 1 warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions