问题:
原因:看source是源于jquery的报错,我引入的写法错误:import * as $ from 'jquery'
解决:应为import $ from 'jquery'
vite打包后报错:nD is not a function、aD is not a function等
最新推荐文章于 2024-06-27 16:30:19 发布
文章讲述了在JavaScript项目中遇到jQuery导入错误的问题,原因是使用了`import*as$fromjquery`的错误写法。解决方案是改为正确的ES6模块导入方式,即`import$fromjquery`。
摘要由CSDN通过智能技术生成