Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build has failed because sub-dependency rrweb-snapshot #907

Open
davidlevi7 opened this issue Oct 27, 2024 · 4 comments
Open

Build has failed because sub-dependency rrweb-snapshot #907

davidlevi7 opened this issue Oct 27, 2024 · 4 comments
Assignees
Labels
bug Something isn't working sessionreplay

Comments

@davidlevi7
Copy link

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 davidlevi7 added the bug Something isn't working label Oct 27, 2024
@jxiwang
Copy link

jxiwang commented Nov 4, 2024

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

@hiba-aldalaty
Copy link

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

@jxiwang
Copy link

jxiwang commented Nov 18, 2024

@hiba-aldalaty Are you using the latest analytics-browser package? If possible, are you able to provide your package.json as well? Thank you.

@jxiwang jxiwang self-assigned this Nov 18, 2024
@scasatorres
Copy link

scasatorres commented Nov 29, 2024

Any updates on this issue @jxiwang ? We’re currently using "@amplitude/analytics-browser": "^2.11.9" and "@amplitude/plugin-session-replay-browser": "^1.8.2" and are encountering the same build problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sessionreplay
Projects
None yet
Development

No branches or pull requests

5 participants