react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Doesn't work with Expo Web

Open ebo-trelly opened this issue 1 year ago • 0 comments

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

ebo-trelly avatar Feb 18 '24 21:02 ebo-trelly