Comments (10)
Yes, rrweb currently do not have valid a definition file. And help is welcomed.
from rrweb.
I'm slammed right now, but if this hasn't been picked up in a couple weeks i'll take a stab
from rrweb.
Sorry for this, won't take so much time to finish it.
from rrweb.
node_modules/rrweb/index.d.ts' is not a module.ts Has the problem been solved?
from rrweb.
@ChuckJonas @lidong081824
Definition files were shipped in 0.7.6
.
from rrweb.
@Yuyz0112 I am honored to get your answer
from rrweb.
I still get this error with 0.7.9 . Can you please provide example import statement and tsconfig.json of a working case so I can see if I'm missing anything?
from rrweb.
same problem here with 0.7.9
examples/rrweb-player.ts:2:26 - error TS2306: File 'node_modules/rrweb/index.d.ts' is not a module.
2 import { Replayer } from 'rrweb'
~~~~~~~
node_modules/rrweb/index.d.ts:4:35 - error TS2304: Cannot find name 'Handler'.
4 (all?: { [key: string]: Array<Handler> }): Emitter;
~~~~~~~
node_modules/rrweb/index.d.ts:4:48 - error TS2304: Cannot find name 'Emitter'.
4 (all?: { [key: string]: Array<Handler> }): Emitter;
~~~~~~~
src/RRWebRecorder.ts:2:42 - error TS2306: File 'node_modules/rrweb/index.d.ts' is not a module.
2 import { Replayer, mirror, record } from 'rrweb'
~~~~~~~
src/example.ts:1:24 - error TS2306: File ' node_modules/rrweb/index.d.ts' is not a module.
1 import { record } from 'rrweb'
from rrweb.
If i transpile with no checks it works but this breaks typechecking of the project so it's very bad for a typescript project.
from rrweb.
@davibe Could you have a try with the latest version?
from rrweb.
Related Issues (20)
- [Bug]: Injected styles are cleared when node is added to a `<style>` element HOT 1
- [Bug]: Duplicate player window
- [Bug]: Seeking within player doesn't correctly handle scrolling HOT 2
- [Bug]: 前端每十秒save的event发送到controller, data要怎样正确拼接才可以正确回放, 现在我只能播放前十秒, 之后因为拼接出错, 一直播放失败
- [Bug]: The player shows canvas in the wrong way HOT 1
- [Bug]: use blockSelector to mask img record will throw error: e.matches is not a function HOT 3
- publish well-formulated and concise types HOT 1
- [Bug]: maskInputFn is not called on inputs
- [feature request]: Record/replay css animation's `currentTime` HOT 6
- [Bug]: progress bar not updating when adding event asynchronously using addEvent
- [Bug]: Added nodes not showing up HOT 1
- Changes the you made may not be saved HOT 1
- [Bug]: CSS `all: unset` incorrectly expands in `events.json` recording HOT 1
- [Bug]: Repeat menu
- [Bug]: Stopping recording causes all insertRule hooks added after record start to drop
- [Bug]: how i can record iframe content HOT 4
- Sanitization/Renaming for Security in Snapshot vs Replay reconstruction HOT 1
- [Bug]: Failed to rebuildFullSnapshot HOT 3
- [Bug]: Firefox Addon causes "This page is asking you to confirm that you want to leave" on all navigation HOT 1
- [Bug]: isParentRemoved lags by 1 to 3 seconds on pages with lots of nodes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rrweb.