Closed timoisalive closed 1 year ago
seems like something is up with metro web here
Ok, thanks for looking into it! I'll keep following the thread...
not sure if this is the same case. but this is happening to me with react-hook-form
. i added this and it fixes the issue
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
config.transformer.getTransformOptions = async () => ({
transform: {
experimentalImportSupport: true,
},
});
+config.resolver.sourceExts.push('mjs');
+config.resolver.sourceExts.push('cjs');
module.exports = config;
yup, I got the same error, even though I downloaded npm sooner
Did you try the workaround?
Did you try the workaround?
ye, The solution above helped me solve this problem
New Expo Web docs on the README have been added solving this.
Nice, thanks a bunch! 🙏
Hmm, I'm getting
I have installed
sonner
, even tried an older version of it.I'm running an Expo 49 project.