Skip to content

Cannot find module 'rrweb-snapshot' or its corresponding type declarations #252

@loremaps

Description

@loremaps

Hi,

I get the following error when trying to upgrade to a later version than v1.9.7

Error: node_modules/posthog-js/dist/module.d.ts:4:50 - error TS2307: Cannot find module 'rrweb-snapshot' or its corresponding type declarations.

4 import { MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot'

this is for an Angular 12 project

It looks related to this:

import { MaskInputOptions, SlimDOMOptions } from 'rrweb-snapshot'

Should rrweb-snapshot be added to the dependencies?

FYI it works fine if I install rrweb-snapshot separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions