【发布时间】:2020-10-30 23:33:09
【问题描述】:
当我尝试使用declare var tex2max: any; 导入tex2max 时,我得到一个ReferenceError: tex2max is not defined。但这不会发生在其他 npm 包中。我尝试通过安装 npm 包和 index.html 中的脚本标签来绑定脚本,但无济于事。
这里是源代码的CDN文件:
【问题讨论】:
-
为什么不在你正在使用的文件中
import TeX2Max from 'tex2max'?
标签: javascript angular npm import