expo / expo/vector-icons

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

Open
#175 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
743
Forks
123
PR merge metrics
No merged PRs in 30d

Description

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

![image](https://user-images.githubusercontent.com/29891519/119303981-c6b51200-bc90-11eb-9e9a-b0762e6e58f9.png)

```
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"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.