ammarahm-ed / react-native-actions-sheet

A Cross Platform(Android, iOS & Web) ActionSheet with a flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
https://rnas.vercel.app
MIT License
1.49k stars 121 forks source link

[commonjs--resolver] Unexpected token => node_modules/react-native-actions-sheet/dist/src/index.js:785:12 #318

Closed motto76 closed 8 months ago

motto76 commented 11 months ago

Hello,

I have the following problem on desktop. After including 'react-native-actions-sheet' @0.8.21, I get the following error message when building with vite:

[commonjs--resolver] Unexpected token (785:12) in D:/workspace/ActionsSheet/node_modules/react-native-actions-sheet/dist/
file: D:/workspace/ActionsSheet/node_modules/react-native-actions-sheet/dist/src/index.js:785:12

grafik

When I look into this file, I see that there is a JSX fragment in the .js file?! And this is exactly what is detected as an error.

How can I fix this problem??

What does our environment look like ?