expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps
https://docs.expo.dev/routing/introduction/
1.36k stars 113 forks source link

Metro has encountered an error: While trying to resolve module stylis #863

Closed hyochan closed 1 year ago

hyochan commented 1 year ago

Which package manager are you using? (Yarn is recommended)

yarn

Summary

Kindly note, I am raising this concern once more following issue #854. It appears to have been inadvertently closed even though the matter has not been addressed. I've been facing this challenge for over a month now. Your understanding and assistance would be greatly appreciated.

I would like to bring to your attention that the issue still persists in expo-router@^2.0.1 as mentioned in this comment. Additionally, as @marklawlor pointed out in this comment, it remains unresolved. Your guidance on this matter would be deeply appreciated.

Original Context

Summary

Originally posted related issue in https://github.com/expo/expo/issues/23412.

I am facing below error after installing emotion from expo-router-49 template.

Screenshot 2023-08-23 at 10 27 26 AM

Related Issue

I also posted issue in https://github.com/emotion-js/emotion/issues/3073 and doubt that this happens in expo-router 🤔

Minimal reproducible example

I created a small repo in commit after Generated by create-expo-app 2.0.3. in https://github.com/hyochan/expo-router-49-stylis-error-reproduction.

marklawlor commented 1 year ago

@hyochan Sorry some other fixes were released in @expo/metro-config. These are available under @expo/metro-config@next or as a quick fix forcing .mjs resolution by updating your metro.config.js with config.resolver.assetExts.push("mjs");,

abumalick commented 10 months ago

@marklawlor Which version of @expo/metro-config is impacted please?

marklawlor commented 10 months ago

latest, which is 0.10.x. The issue was resolved in 0.13.x