I'm creating a chrome extension and bootstrapped the project using create-react-app.
I want to access
'chrome' is not defined no-undef
That error (
'chrome is not defined no-undef') looks like a linting error; the linter that comes with
create-react-app thinks that
chrome is undefined because your code never defines it. Little does the linter know, for Chrome extensions, it's a global variable, so you don't have to define it.
/* global chrome */ to the top of the file(s) that use(s) the