import jquery as es6 module to typescript file

I use ts, jspm, ng2, WebStorm 2016.1 for my project.

I try import jquery as es6 module to file.

My steps:

1. jspm install jquery

2. tsd install jquery --save

3. import $ from "jquery"; file app/app.component.ts in uploaded project

For import I get error Default export is not declard in imported module.

Comment actions Permalink

Hmm... But the error is correct: no default exports can be found in jquery.d.ts... Typescript compiler will show similar error: `TS1192: Module '"jquery"' has no default export.`

Comment actions Permalink

Note also that JSPM modules are not supported yet, please follow for updates


Please sign in to leave a comment.