jspm / jQuery / TypeScript - module “jquery” has no default export

前端 未结 2 384
失恋的感觉
失恋的感觉 2021-02-05 04:13

I\'m trying to bootstrap a web app using TypeScript and jspm & system.js for module loading. I\'m not getting very far. After installing jspm, and using it to install jQuery

相关标签:
2条回答
  • 2021-02-05 04:20

    If you are using visual studio, update the typescript plugin.

    To obtain the latest version for visual studio 2017, go there

    0 讨论(0)
  • 2021-02-05 04:22

    When the module doesn't have a default export, you can import the complete module as object: import * as $ from "jquery";

    or import named exports: import { ajax, css } from "jquery";

    0 讨论(0)
提交回复
热议问题