Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'.../multiplex.d.ts' is not a module #31

Open
patroza opened this issue Jun 25, 2017 · 2 comments
Open

'.../multiplex.d.ts' is not a module #31

patroza opened this issue Jun 25, 2017 · 2 comments

Comments

@patroza
Copy link

patroza commented Jun 25, 2017

Typescript 2.4.
'.../multiplex.d.ts' is not a module

while using the import syntax:
import * as mx from "multiplexjs";

Not sure about the exact resolution, I guess the definition should be different depending on global browser, or ES6 module usage.

My workround is to use:

import "multiplexjs"; // makes the mx type definition usable
const mx: mx.MultiplexStatic = require("multiplexjs"); // makes the mx static function available
@sk29110
Copy link

sk29110 commented Sep 15, 2017

Any update for this issue?

@junalmeida
Copy link

I cannot use it either in an angular 4 project. the quoted workaround don't work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants