Expo webpack-config error: Cannot destructure property `allowedHost`

When running expo start --web on as project with SDK 34, get error below:

Cannot destructure property allowedHost of ‘undefined’ or ‘null’.
TypeError: Cannot destructure property allowedHost of ‘undefined’ or ‘null’.

TypeError: Cannot destructure property `allowedHost` of 'undefined' or 'null'.
    at Object.<anonymous> (/Users/michaelchow/Developer/presence/node_modules/@expo/webpack-config/src/createDevServerConfigAsync.ts:17:34)
    at Generator.next (<anonymous>)
1 Like

This only occurs when using a custom webpack.config.js.

This happens even when directly passing through the expo webpack config:

const expoConfig = require('@expo/webpack-config')

module.exports = function(env, argv) {
  return expoConfig(env, argv)
}