Skip to content

crash at expo metro build #15

Closed
Closed
@ericlyoung

Description

@ericlyoung

running: npx expo export -p web
as described on https://docs.expo.dev/distribution/publishing-websites/

╰─>$ npx expo export -p web
Static rendering is enabled. Learn more
Starting Metro Bundler
λ Bundled 6747ms (node_modules/expo-router/node/render.js)
Web Bundled 6871ms (node_modules/expo-router/entry.js)

Metro error: window is not defined

1 | import RTCView from './RTCView';
2 |

3 | window.MediaStream.prototype.release = function release() {
| ^
4 | this.getTracks().forEach((track) => track.stop());
5 | };
6 |

Call Stack
factory (node_modules/react-native-webrtc-web-shim/src/react-native-webrtc-web-shim.web.js:3)
loadModuleImplementation (node_modules/metro-runtime/src/polyfills/require.js:342:5)
guardedLoadModule (node_modules/metro-runtime/src/polyfills/require.js:240:12)
r (node_modules/metro-runtime/src/polyfills/require.js:127:7)
factory (node_modules/react-native-webrtc-web-shim/index.js:1)
loadModuleImplementation (node_modules/metro-runtime/src/polyfills/require.js:342:5)
guardedLoadModule (node_modules/metro-runtime/src/polyfills/require.js:240:12)
r (node_modules/metro-runtime/src/polyfills/require.js:127:7)
factory (app/calls/[id].js:8)
h (node_modules/metro-runtime/src/polyfills/require.js:342:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions