question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lib/create-icon-set.js: Support for the experimental syntax 'classProperties' isn't currently enabled

See original GitHub issue

I believe this module should include some compiling beforehand, rather than expecting the users build environment to transpile features.

node_modules/react-native-vector-icons/lib/create-icon-set.js: Support for the experimental syntax 'classProperties' isn't currently enabled (43:22):

  41 | 
  42 |   class Icon extends PureComponent {
> 43 |     static propTypes = {
     |                      ^
  44 |       allowFontScaling: PropTypes.bool,
  45 |       name: IconNamePropType,
  46 |       size: PropTypes.number,

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:31
  • Comments:13

github_iconTop GitHub Comments

12reactions
YajanaRaocommented, Nov 18, 2019

I am not able to use vector icons in react native web because of this error. Any update on the issue ?

11reactions
krewllobstercommented, Jun 10, 2021

This is still happening with react-native-web

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for the experimental syntax 'classProperties' isn't ...
First install the: @babel/plugin-proposal-class-properties as dev dependency: ... The module section of my webpack.config.js looks like this
Read more >
[HELP] Syntax 'classProperties' isn't currently enabled ... - Reddit
js : Support for the experimental syntax 'classProperties' isn't currently enabled (43:22): class Icon extends PureComponent { static propTypes = ...
Read more >
Support for the experimental syntax 'classProperties ... - Drupal
Problem/Motivation When importing the 1.0.17 release of this package, various bundlers will fail due lack of support for class properties ...
Read more >
Support for the experimental syntax 'classProperties' isn't ...
Coding example for the question Support for the experimental syntax 'classProperties' isn't currently enabled error on a React.js-babel.js.
Read more >
Reactjs – Support for the experimental syntax 'classProperties ...
node_modules/babel-loader/lib/index.js): SyntaxError: ... for the experimental syntax 'classProperties' isn't currently enabled (17:9):
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found