question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to solve module `css-tree` from `../react-native-svg/src/css.tsx`

See original GitHub issue

Bug

Can’t run project via Xcode build. I’ve already removed my node_modules and installed it again, the error persist.

Environment info

System: OS: macOS 10.15 CPU: (4) x64 Intel® Core™ i5-5257U CPU @ 2.70GHz Memory: 49.55 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.4.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.10.2 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 25, 26, 27, 28, 29 Build Tools: 27.0.3, 28.0.2, 28.0.3, 29.0.1 System Images: android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.9 => 0.59.9 npmGlobalPackages: react-native-clean-project: 3.2.4 react-native-cli: 2.0.1

React native info output:

Failed to load bundle with error: (Unable to solve module `css-tree` from `../react-native-svg/src/css.tsx`: Module `css-tree` doest not exist in the Haste module map

Library version:

"react-native": "0.59.9",
"react-native-svg": "^9.13.0"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
msandcommented, Oct 23, 2019

Can you try yarn add css-tree css-select

2reactions
msandcommented, Oct 23, 2019

🎉 This issue has been resolved in version 9.13.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug - GitHub
Bug Can't run project via Xcode build. ... Unable to solve module css-tree from ../react-native-svg/src/css.tsx #1166.
Read more >
7 - Stack Overflow
I found a way to fix it, you just need to install css-tree package on your project. npm install css-tree. or if you...
Read more >
unable to resolve "react-native-svg" - You.com | The search engine ...
bash Failed to load bundle with error: (Unable to solve module `css-tree` from `../react-native-svg/src/css.tsx`: Module `css-tree` doest not exist in the ...
Read more >
How to use the css-tree.generate function in css-tree - Snyk
To help you get started, we've selected a few css-tree.generate examples, based on popular ways it is used in public projects.
Read more >
React Native, Typescript and VS Code: Unable to resolve ...
The problem with resolving modules turned out to be related to VS Code's typescript project helper.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found