Doesn't work with Expo Web
ebo-trelly opened this issue · 0 comments
ebo-trelly commented
Current Behavior
Doesn't work with Expo Web's starter code https://docs.expo.dev/workflow/web/
Input Code/Steps to reproduce
From the expo starter doc:
- npx create-expo-app Demo
- cd Demo
- npx expo install react-dom react-native-web @expo/metro-runtime
- npm install react-native-copilot
in the App.js, adding:
import { CopilotProvider } from 'react-native-copilot';
Terminal log: Unable to resolve "react-native-copilot" from "App.js"
Possible solution
From this discussion, it seems Expo's metro uses package.json's module
over main
and the react-native-copilot's package.json has "module": "dist/index.mjs"
. But when I locally go to node_modules/react-native-copilot/dist
, index.mjs doesn't exist