Skip to content

Typescript error when using the dist/proj4.js file #524

@M393

Description

@M393

Getting a typescript error since 2.16.7 (#522) when using node_modules/proj4/dist/proj4.js

/* global proj4 */
proj4.defs('EPSG:5514', '...');

Property 'defs' does not exist on type 'typeof import("/xxx/node_modules/proj4/dist/index")'.ts(2339)

Reverting to export = proj4; in the index.d.ts makes it work again, not sure how to square this with the angular error from #521 ...

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