mmazzarolo / react-native-universal-monorepo

React Native boilerplate supporting multiple platforms: Android, iOS, macOS, Windows, web, browser extensions, Electron.
MIT License
1.7k stars 150 forks source link

How to handle "Support for the experimental syntax 'jsx' isn't currently enabled" ? #47

Open minuitagency opened 2 years ago

minuitagency commented 2 years ago

Hi,

Thanks for the great repo that is of great help here,

I have a recurring error with this type of mono repo (react native + react native web) that I don't quite know how to handle:

image

The package was properly added to no hoist,

What else should I do?

Thanks again,

Théo

minuitagency commented 2 years ago

any idea?

Thanks

markrickert commented 1 year ago

@minuitagency You have to name your files to indicate there's JSX in the file. So for javascript files, *.js becomes *.jsx and for typescript *.ts becomes *.tsx.