Skip to content

loader-module-core type error in 2.67.0 #501

@xconverge

Description

@xconverge

2.66.0 worked fine for:

import mixpanel from "mixpanel-browser/src/loaders/loader-module-core"

in 2.67.0 I get

Could not find a declaration file for module 'mixpanel-browser/src/loaders/loader-module-core'. '/xxx/node_modules/mixpanel-browser/src/loaders/loader-module-core.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/mixpanel-browser` if it exists or add a new declaration (.d.ts) file containing `declare module 'mixpanel-browser/src/loaders/loader-module-core';`ts(7016)

I use this option to reduce bundle size as documented https://github.com/mixpanel/mixpanel-js?tab=readme-ov-file#alternative-installation-via-npm and referenced #482 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions