I am encountering an issue with using external imports of jQuery in webpack. Despite trying different import syntaxes such as import $ from 'jquery'
, import * as $ from 'jquery
, and const $ = require('jquery')
, I continue to receive the error message
jquery_1.default is not a function
. I am working with TypeScript, webpack, and Vue. Can anyone provide guidance on how to resolve this issue? Thank you in advance.
tsconfig.js
https://i.stack.imgur.com/kfKMj.png
webpack.config.js
https://i.stack.imgur.com/Z7skV.png
The error information
https://i.stack.imgur.com/fz1Ku.png
globals.d.ts
https://i.stack.imgur.com/ExrvY.png