吴工 发表于 2023-12-18 13:33:47

引用@@grapecity/activereports/ 出错

./node_modules/@grapecity/activereports/lib/node_modules/@grapecity/ar-js-pdf.js 8:460555Module parse failed: Unexpected token (8:460555)You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.


加载器已安装, 还是不行   

Felix.Li 发表于 2023-12-18 17:28:14

问题描述:

引用ar-vue,pdf.js报错没有loader

问题回复:
升级了一个东西的版本:

"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",

然后vue.config.js配置:


transpileDependencies: [
    '@grapecity/activereports/',
],

然后主动加载activeReport包下的JS即可




页: [1]
查看完整版本: 引用@@grapecity/activereports/ 出错