Closed ryanyu104 closed 6 years ago
The problem is in the react-mic
codebase: https://github.com/hackingbeauty/react-mic/blob/3edd1e9a651a0afdd35aaed23e33449fec6eb0b1/src/libs/AudioContext.js#L1
Here there is unguarded access to the window global at the top level. Which means that as long as react-mic
is imported anywhere, it'll break the server whether used at all at runtime or not. You'll need to submit a PR to react-mic to fix this.
@klarstrup THX, I get it. I will close this issue.
when I import plugin in my project code: import ReactMic from "react-mic" report error: window is not defined.
I know it is the server environment, but how can I solve this error? THX