Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 416 Bytes

chrome-is-not-defined.md

File metadata and controls

13 lines (9 loc) · 416 Bytes

How to fix 'chrome' is not defined (Chrome extension)

If you use eslint on your project, you may get the error like something is not defined (e.g. chrome).

In order to fix it, you can define chrome by adding /global chrome/ in the top of the file.

/*global chrome*/
import React, { Component } from 'react';

References: