skip to Main Content

When adding the libraries to my code i get the error: "ReferenceError: Property ‘document’ doesn’t exist, js engine: hermes"

I have not added anything else does someone now what the issue is and how to resolve te problem, i am using react-native-expo

2

Answers


  1. Check your installed packages. Some packages works for web. Uninstall them. Don’t forget you are developing in react-native.

    Login or Signup to reply.
  2. Since you are using React Native Expo, which is a mobile app development framework, it does not have a document object. Instead, you should use the React Native APIs to manipulate the UI components.

    If you are trying to use a library that relies on the document object, you may need to find an alternative library that is compatible with React Native. Alternatively, you could try using a different JavaScript engine that supports the document object, such as V8.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search