I was following JSPM getting started guide and I want to install jquery package so I execute below command.
jspm install jquery
But when I try to import it in typescript like below
import $ from 'jquery'
I'm getting a error from typescript compiler saying error TS2307: Cannot find module 'jquery'.
Not only for this library for other libraries I'm getting the same error.
您需要在编译上下文中包含jquery
类型定义,您可以从https://github.com/DefinitelyTyped/DefinitelyTyped获取它们
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.