gabrieldonadel / rn-material-ui-textfield

Material UI textfield
https://www.npmjs.com/package/rn-material-ui-textfield
Other
37 stars 31 forks source link

Not working in Electron #43

Closed TheNoShade closed 1 year ago

TheNoShade commented 2 years ago

I'm developing a desktop app using electron and want to use rn-material-ui-textfield but compiled with errors:

ERROR in ./node_modules/rn-material-ui-textfield/src/components/field-outlined/index.js

Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: /node_modules/rn-material-ui-textfield/src/components/field-outlined/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (57:12):

55 | let { labelWidth } = this.state 56 | 57 | return <Outline {...props} labelWidth={labelWidth} /> 58 | } 59 | } 60 |

The other error is below:

ERROR in ./node_modules/rn-material-ui-textfield/src/components/field/index.js

Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: /node_modules/rn-material-ui-textfield/src/components/field/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (489:7):

487 | 488 | return ( 489 | <Label | ^ 490 | {...props} 491 | fontSize={fontSize} 492 | activeFontSize={labelFontSize}

gabrieldonadel commented 2 years ago

@TheNoShade do you mind putting up a small demo so I can investigate this?

gabrieldonadel commented 1 year ago

@TheNoShade this should be fixed on v1.0.9