You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a trivial question but I'm trying to require the rrweb package using:
const rrweb = require('rrweb');
but I'm getting the following error:
ReferenceError: HTMLInputElement is not defined
at Object.<anonymous> (/path/to/node_modules/rrweb/lib/rrweb.js:773:6)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
Is this not how we should be importing the node package? It seems like this is expecting to be executed in a browser where HTMLInputElement is defined.
The text was updated successfully, but these errors were encountered:
This might be a trivial question but I'm trying to require the
rrweb
package using:but I'm getting the following error:
Is this not how we should be importing the node package? It seems like this is expecting to be executed in a browser where
HTMLInputElement
is defined.The text was updated successfully, but these errors were encountered: