Good morning guys, for some reason my expo projects started to give me this error:
Android Bundling failed 3110ms
Unable to resolve module ../../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs from /home/myuser/dev/rendafacil/node_modules/react-native-gesture-handler/lib/commonjs/gestureHandlerRootHOC.js:
None of these files exist:
* hoist-non-react-statics.cjs
* node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
> 1 | "use strict";
2 |
3 | Object.defineProperty(exports, "__esModule", {
4 | value: true
My metro.config.js
const { getDefaultConfig } = require('@expo/metro-config')
const defaultConfig = getDefaultConfig(__dirname)
defaultConfig.resolver.assetExts.push('cjs')
module.exports = defaultConfig
my app.json
{
"expo": {
"packagerOpts": {
"sourceExts": ["cjs"]
}
...
}
Can anyone help me? idk what I’m missing, i did all the docs said.
Cellphone **Android**
"expo": "^45.0.0",
"@expo/metro-config": "^0.3.19",
eas-cli/0.55.1 linux-x64 node-v16.14.0