Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo 36: Unable to resolve "../../data" from "node_modules/css-tree/lib/syntax/default.js"

Got this error after upgrading expo 35 to 36.

Unable to resolve "../../data" from "node_modules/css-tree/lib/syntax/default.js"

I've tried to yarn add css-tree. This error was gone, but then module react-native-svg started giving the same error with it's included css-tree module.

I've tried to upgrad expo-cli to the latest version and restart terminal. I'm running builds with expo start -c to ensure cache doesn't affect it. I've tried to delete app from the simulator. Still the same.

I've been able to apply a temporary fix by upgrading css-tree dependency inside the react-native-svg, but this is a really wrong way to go as far as I know.

Any ideas?

like image 431
stkvtflw Avatar asked Dec 13 '19 12:12

stkvtflw


1 Answers

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 are using yarn

yarn add css-tree

like image 163
EroNiC Avatar answered Oct 21 '22 04:10

EroNiC