Code Monkey home page Code Monkey logo

Comments (10)

Yuyz0112 avatar Yuyz0112 commented on August 22, 2024

Yes, rrweb currently do not have valid a definition file. And help is welcomed.

from rrweb.

ChuckJonas avatar ChuckJonas commented on August 22, 2024

I'm slammed right now, but if this hasn't been picked up in a couple weeks i'll take a stab

from rrweb.

Yuyz0112 avatar Yuyz0112 commented on August 22, 2024

Sorry for this, won't take so much time to finish it.

from rrweb.

lidong081824 avatar lidong081824 commented on August 22, 2024

node_modules/rrweb/index.d.ts' is not a module.ts Has the problem been solved?

from rrweb.

Yuyz0112 avatar Yuyz0112 commented on August 22, 2024

@ChuckJonas @lidong081824
Definition files were shipped in 0.7.6.

from rrweb.

lidong081824 avatar lidong081824 commented on August 22, 2024

@Yuyz0112 I am honored to get your answer

from rrweb.

GabiAxel avatar GabiAxel commented on August 22, 2024

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.

davibe avatar davibe commented on August 22, 2024

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.

davibe avatar davibe commented on August 22, 2024

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.

Yuyz0112 avatar Yuyz0112 commented on August 22, 2024

@davibe Could you have a try with the latest version?

from rrweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.