expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps

Home Page:https://docs.expo.dev/routing/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hyochan opened this issue · comments

commented

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 expo/expo#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 emotion-js/emotion#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.

@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");,

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

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