diff --git a/runtime/metro.config.js b/runtime/metro.config.js index ed84d1bf..1efb11e2 100644 --- a/runtime/metro.config.js +++ b/runtime/metro.config.js @@ -11,6 +11,11 @@ if (boolish('SNACK_EXPORT_WEB', false)) { const semver = require('semver'); config.transformer.publicPath = `/v2/${semver.major(expoVersion)}/assets`; + + // Error: While trying to resolve module `@socket.io/component-emitter` from file `/runtime/node_modules/socket.io-parser/build/esm/index.js`, + // the package `/runtime/node_modules/@socket.io/component-emitter/package.json` was successfully found. + // However, this package itself specifies a `main` module field that could not be resolved + config.resolver.sourceExts.push('mjs'); } module.exports = config;