Unhandled JS Exception: Can't find variable: module

When I preview my app in the simulator I get the following error

Unhandled JS Exception: Can’t find variable: module (http://localhost:19001/node_modules/expo/AppEntry.bundle

16

I am using

“react-native”: “https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz”,
“react”: “16.3.1”,

I found the cause of the error which was in my app.json

"packagerOpts": {
      "assetExts": ["html", "js]
    },

which I changed to the following to fix

"packagerOpts": {
      "assetExts": ["html"]
    },

js assets are not uploaded anyway.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.