expo / vector-icons

https://icons.expo.fyi
MIT License
648 stars 114 forks source link

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

Open RandGor opened 3 years ago

RandGor commented 3 years ago

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"