-
Notifications
You must be signed in to change notification settings - Fork 41
Error when using with metro only #338
Copy link
Copy link
Open
Labels
auto-triagedIssue has been automatically triaged by the auto-triage workflowIssue has been automatically triaged by the auto-triage workflowbugSomething isn't workingSomething isn't workingdeferred (post-5.0)Not required for the 5.0 latest release; revisit afterNot required for the 5.0 latest release; revisit afterneeds-deep-triageNeeds Tier 2 triage (runtime/simulator, self-hosted runner)Needs Tier 2 triage (runtime/simulator, self-hosted runner)
Description
Activity
Metadata
Metadata
Assignees
Labels
auto-triagedIssue has been automatically triaged by the auto-triage workflowIssue has been automatically triaged by the auto-triage workflowbugSomething isn't workingSomething isn't workingdeferred (post-5.0)Not required for the 5.0 latest release; revisit afterNot required for the 5.0 latest release; revisit afterneeds-deep-triageNeeds Tier 2 triage (runtime/simulator, self-hosted runner)Needs Tier 2 triage (runtime/simulator, self-hosted runner)
Before submitting a new issue
Bug summary
The instructions in the
README.mdstate:When I try this I receive an error:
Is there a specific version of
@expo/metro-configI should be using? I'd like to avoid importing all ofexpo.Library version
3.0.7
Environment info
System: OS: Linux 7.0 CPU: Memory: GB Shell: version: 5 path: /bin/sh Binaries: Node: version: 24.15.0 path: Yarn: version: 1.22.22 path: npm: version: 11.13.0 path: Watchman: Not Found SDKs: Android SDK: Not Found IDEs: Android Studio: Not Found Languages: Java: version: 17.0.19 path: Ruby: Not Found npmPackages: "@react-native-community/cli": installed: 20.1.3 wanted: ^20.1.3 react: installed: 19.2.3 wanted: ^19.2.5 react-native: installed: 0.85.3 wanted: ^0.85.3 npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: true iOS: hermesEnabled: true newArchEnabled: trueSteps to reproduce
npx @react-native-community/cli@latest init reactNativeCssExample --version latestnpm i --save-dev react-native-css @expo/metro-configmetro.config.jsnpm run startReproducible example repository
https://github.com/wallzero/react-native-css-example