79257150

Date: 2024-12-06 07:27:00
Score: 0.5
Natty:
Report link

After trying to fix it for two days, i found out, I created metro.config.js manually, so I deleted it again and put below code in terminal

npx expo customize metro.config.js

this generates metro.config.js file for you in the root folder.

then pasted below code in the file

const { getDefaultConfig } = require("expo/metro-config");
const config = getDefaultConfig(__dirname);

// Added this line:
config.resolver.assetExts.push("bin");

module.exports = config;

and it started working

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mradul Mishra