boo1ean/casual

Error: 'Exported external package typings is not a module' when using the module

almilo opened this issue · 4 comments

Since TypeScript definitions were included in 1.5.4 I get the following error while compiling: "error TS2656: Exported external package typings file '.../node_modules/casual/index.d.ts' is not a module. Please contact the package author to update the package definition."

Before I used a trivial ambient definition which seemed to compile:

declare module 'casual' {
    const casual: any;

    export = casual;
}

Thanks!
Alberto

I get the same in Meteor using: meteor npm install --save casual

It installs OK but when I reference the package as an import I get the following in the IDE (visual studio code) >>>
[js] Exported external package typings file '.../meteor/myapp/node_modules/casual/index.d.ts' is not a module. Please contact the package author to update the package definition.

PS: Reinstalling @1.5.0 fixed the problem (for now)

This should be fixed by the #47 changes, released as 1.5.5

Thanks!

oops, just tried 1.5.5 it still has the same problem >.<