amplitude/Amplitude-TypeScript

Build has failed because sub-dependency rrweb-snapshot

Opened this issue · 2 comments

Expected Behavior

Build success

Current Behavior

Build failed as a result of rrweb-snapshot library as sub-dependency of @amplitude/plugin-session-replay-browser

Possible Solution

Steps to Reproduce

Once I trying to npm run build I got this.

./node_modules/@amplitude/rrweb-snapshot/dist/rrweb-snapshot.js 236:15
Module parse failed: Unexpected token (236:15)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|     if (!n) return -1;
|     const id = (_a = this.getMeta(n)) == null ? void 0 : _a.id;
>     return id ?? -1;
|   }
|   getNode(id) {

@davidlevi7 Can you try updating your SDK version to v1.8.2 and re-installing packages?

I'm having the same issue on v1.8.2. Any luck getting it to work @davidlevi7 ?