This repo was created to reproduce the issue described in PR #239 of the jsep package.
This repo was created with create-expo-app
.
-
Install the app and run
git clone https://github.com/bladerunner2020/jsep-expo-239 cd jsep-expo-239 npm install npm expo start
You can start the React Native app in a web browser by pressing 'w'. In the browser, there is no issue.
-
Install Android emulator
-
Try to launch the app in the emulator by pressing 'a'.
You should get an error:
ERROR TypeError: Restricted in strict mode, js engine: hermes
. -
Comment out line 12 in explore.tsx:
const { Jsep } = require('jsep');
and the error is gone.
To reproduce this issue, you need to create an app with create-expo-app, install jsep, and add require('jsep'). Basically, this is what has been done in this repo.