- SDK Version: 47
- Platforms(Android/iOS/web/all): web
I am on a monorepo
$ expo start --web -c
Starting project at C:\p\spring-docker\expo-app
Unable to reach Expo servers. Falling back to using the cached dependency map (bundledNativeModules.json) from the package "expo" installed in your project.
Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
Clearing Webpack development cache directory...
Starting Webpack on port 19006 in development mode.
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.node should be one of these:
false | object { __dirname?, __filename?, global? }
-> Include polyfills or mocks for various node stuff.
Details:
* configuration.node has an unknown property 'module'. These properties are valid:
object { __dirname?, __filename?, global? }
I tried to remove the webpack.config.js as well same error (but I do need it because I have to transpile stuff in the mono-repo
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(
{
...env,
babel: {
dangerouslyAddModulePathsToTranspile: ["@trajano"],
},
},
argv
);
// Customize the config before returning it.
return config;
};
❯ yarn why webpack
yarn why v1.22.19
[1/4] Why do we have the module "webpack"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "webpack@4.43.0"
info Reasons this module exists
- "_project_#@trajano#spring-docker-expo-app#@expo#webpack-config" depends on it
- Hoisted from "_project_#@trajano#spring-docker-expo-app#@expo#webpack-config#webpack"