Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] | [commonjs--resolver] Unexpected token #1591

Closed
motto76 opened this issue Oct 25, 2023 · 1 comment
Closed

[v4] | [commonjs--resolver] Unexpected token #1591

motto76 opened this issue Oct 25, 2023 · 1 comment
Labels

Comments

@motto76
Copy link

motto76 commented Oct 25, 2023

Bug

When building our project with vite the following error occurs:

[commonjs--resolver] Unexpected token (14:7) in D:/workspace/project/node_modules/react-native/index.js
file: D:/workspace/project/node_modules/react-native/index.js:14:7
12: 
13: // Components
14: import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
           ^
15: import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
16: import typeof Button from './Libraries/Components/Button';
error during build:
SyntaxError: Unexpected token (14:7) in D:/workspace/project/node_modules/react-native/index.js

grafik

Environment info

Library Version
@gorhom/bottom-sheet 4.5.1
react-native 0.72.6
react-native-reanimated 3.5.4
react-native-gesture-handler 2.13.4
react 18.2.0
node.js 18.18.0

Steps To Reproduce

  1. running vite build

Does anyone know what is going wrong here?

@motto76 motto76 added the bug Something isn't working label Oct 25, 2023
@github-actions
Copy link

@motto76: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant