Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ionic/react/typescript - how to enable optional chaining?

$
0
0

Hello,

I created a blank app using react and typescript with this command -

ionic start myApp blank --type=react

After importing another library I get this error when running ionic serve

[react-scripts] …/hissab-editor/build/bundle.js 3645:34
[react-scripts] Module parse failed: Unexpected token (3645:34)
[react-scripts] File was processed with these loaders:
[react-scripts] * ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
[react-scripts] * ./node_modules/babel-loader/lib/index.js
[react-scripts] You may need an additional loader to handle the result of these loaders.
[react-scripts] |
[react-scripts] | getNumberType() {
[react-scripts] > return this.children[0]?.numbertype || this.children[1]?.numbertype;
[react-scripts] | }
[react-scripts] |

How do I enable optional chaining support for this app?

Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>