Open giulianopenido opened 1 month ago
I am facing the same issue.
I found a workaround which is not ideal but will make the build work while the bug is not fixed.
I used a lazy import of the recordrtc module that is only executed right before the place I instantiate the recorder. Make sure this import runs clientside and after hydration.
const RecordRTC = require("recordrtc");
I found a workaround which is not ideal but will make the build work while the bug is not fixed.
I used a lazy import of the recordrtc module that is only executed right before the place I instantiate the recorder. Make sure this import runs clientside and after hydration.
const RecordRTC = require("recordrtc");
How do you support typescript then if you import it this way?
I am facing an issue to build an nextjs project using RecordRTC. Just importing the package I receive this error below
TypeError: Cannot set property navigator of #
Looking into the source code, the problem seems to be from this snippet: