-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When used with Expo Router, Web bundling fails
Web Bundling failed 4470ms (node_modules/expo-router/entry.js)
error: node_modules/expo-router/_ctx.web.js: /node_modules/expo-router/_ctx.web.js: Expected `fromDir` to be of type `string`, got `undefined`
If I comment out the transformer and resolver from metro.config.js, the bundle can succeed.
const { getDefaultConfig } = require("expo/metro-config");
module.exports = (async () => {
const {
resolver: { sourceExts },
} = await getDefaultConfig(__dirname);
// return {
// transformer: {
// babelTransformerPath: require.resolve("react-native-css-transformer"),
// },
// resolver: {
// sourceExts: [...sourceExts, "css"],
// },
// };
})();
Metadata
Metadata
Assignees
Labels
No labels