vector-icons icon indicating copy to clipboard operation
vector-icons copied to clipboard

[Web] Bug on new versions "ReferenceError: __DEV__ is not defined"

Open RandGor opened this issue 4 years ago • 0 comments

I tested this library on different versions. It works fine on 12.0.3 and throw an error on 12.0.4:

image

con.render
E:/_ReactProjects/src/createIconSet.tsx:147
  144 | }
  145 | 
  146 | render() {
> 147 |   if (__DEV__ && this.props.name && !(this.props.name in glyphMap)) {
      | ^  148 |     console.warn(
  149 |       `"${this.props.name}" is not a valid icon name for family "${fontName}"`
  150 |     );

I am using ejected expo and got this error on web compiling via stock "node scripts/start.js"

RandGor avatar May 24 '21 06:05 RandGor