I want to import JQuery using Typescript and I do what the official tutorial of Typescript say:
import * as $ from "jquery";
Still, I get an error:
"cannot find module jquery"
Do you have any idea how to resolve this issue?
You need to install Typescript typings for the library. Run npm install -SD @types/jquery
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.