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

error TS1192: Module '"jquery"' has no default export. #1497

Closed
delebash opened this issue Feb 3, 2016 · 3 comments
Closed

error TS1192: Module '"jquery"' has no default export. #1497

delebash opened this issue Feb 3, 2016 · 3 comments

Comments

@delebash
Copy link

delebash commented Feb 3, 2016

Windows 7 x64
jspm 0.16.15
gulp-typescript 2.9.2
typescript 1.7.3

I have read a few issues regarding this and I think its is a System.js problem but I am not sure.

I am trying to import jquery inside of an Aurelia project using
import $ from 'jquery';

I added jquery to typing via tsd install jquery
after running gulp-typescript I get the above error.

Here are a few articles I have read about the problem
DefinitelyTyped/DefinitelyTyped#6315
microsoft/TypeScript#5285

I have tried the flag "allowSyntheticDefaultImports" : true and false with the same result

If I import jquery using import * as $ from 'jquery'; everything works fine no errors

@guybedford
Copy link
Member

The allowSyntheticDefaultImports option does sound like the right fix, but note that that only works on the latest TypeScript 1.8.0 beta. Are you definitely running that beta version here?

@delebash
Copy link
Author

delebash commented Feb 3, 2016

no, I will update and give it a try

Date: Wed, 3 Feb 2016 11:07:57 -0800
From: notifications@github.com
To: jspm-cli@noreply.github.com
CC: danelebash@hotmail.com
Subject: Re: [jspm-cli] error TS1192: Module '"jquery"' has no default export. (#1497)

The allowSyntheticDefaultImports option does sound like the right fix, but note that that only works on the latest TypeScript 1.8.0 beta. Are you definitely running that beta version here?


Reply to this email directly or view it on GitHub.

@delebash
Copy link
Author

delebash commented Feb 8, 2016

Thanks, that fixed it.

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

No branches or pull requests

2 participants