-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
replayer.play makes page stop working #29
Comments
Looks like you are trying to use rrweb with vue, and I write a simple example based on your code and it works as expected. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Debug</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
</head>
<body>
<div id="app">
<p>{{ count }}</p>
<button @click="stopRecord">replay</button>
</div>
<script>
const app = new Vue({
el: '#app',
data: {
count: 0,
},
mounted() {
const self = this;
this.events = [];
this.stopper = rrweb.record({
emit(event) {
self.events.push(event);
},
});
// do some thing to update the view
this.timer = setInterval(() => {
this.count++;
}, 1000);
},
methods: {
stopRecord() {
this.stopper();
clearInterval(this.timer);
const replayer = new rrweb.Replayer(this.events);
replayer.play();
},
},
});
</script>
</body>
</html> Do you mind providing more details about what do you mean 'page stop working'? |
@Yuyz0112 I debug the code, 'replayer.play' works, but when I step next, this problem occurs. |
Sounds weird. It will be appreciated if you can provide your OS info and Chrome version and I will try to reproduce the problem. |
@liswift |
You are right, I disable all chrome extensions and it works! |
@liswift |
@Yuyz0112 AlloyDesigner. |
@Yuyz0112 I encounter the same issue. When I use my own rrweb extension, I cannot use the rrweb.Replayer package on a VueJS website. The error is : TypeError: Failed to fetch dynamically imported module. If i disable my own rrweb extension, then the website is okay. @liswift How you dealt with it ? |
code like this:
I do some actions, then stop recording and use replayer.play. Then the page stops working,as the picture shows. no console errors
The text was updated successfully, but these errors were encountered: