Closed Temkit closed 5 years ago
Issue resolved after installing :
"postcss": "^7.0.16", "postcss-css-variables": "^0.12.0", "postcss-loader": "^3.0.0", "react-native-postcss-transformer": "^1.2.4"
can someone explain what hapened here ?
@Temkit Thanks for this.
I can't say for sure without seeing your project, but one usual suspect is that you need to restart the packager after adding new files to your project. For some reason the Metro packager does not seem to find the files that are added without a restart.
Let me know if you still have issues or if you want me to have a look at your project.
I am receiving this same error, Unable to resolve module styles.scss....
after updating expo-cli to 3.0.9. I have followed the documentation and have added the metro.config.js file as shown in the documentation. I have tried adding the packages mentioned above but nothing I have tried has made any difference. I have tried different versions of node when yarn installing and still get the error when loading the app in the simulator. I am not really sure what to share because everything was working perfectly until the cli update. Any chance you can help point me in the right direction, or tell me what information you might need to help debug? Thanks for your time
Oh yeah Expo made a breaking change, so the docs need to be updated. Here are the updated docs from the SVG transformer: https://github.com/kristerkari/react-native-svg-transformer#for-react-native-v057-or-newer--expo-sdk-v3100-or-newer
So @cobyfielding you need to add the sourceExts
field to app.json
to fix the issue.
Awesome!!! Thank you so much @kristerkari. Do you have a patreon account?
You're welcome :)
Do you have a patreon account?
I don't, but there are plenty of other open source projects and people working with open source that need support, so please donate to them instead. 👍
After following the documentation, i have an error when importing the scss file :
import sidebarStyles from "./sidebar.module.scss";
of course the files exist and in the right path, double checked everything multiple times.the complete error :