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