将stimulsoft js文件添加到有角度的webpack

时间:2018-10-21 13:36:06

标签: javascript angular webpack stimulsoft

我从https://v2.angular.io/docs/ts/latest/guide/webpack.html下载了一个简单的webpack项目 并尝试将Stimulsoft.reports,Stimulsoft.viewer和stimulsoft.viewer.office2013.whiteblue.css添加到我的项目的vendor.ts中,但是运行该项目(从npm start),我看到此错误:

    ERROR in ./src/stimulsoft/stimulsoft.reports.js
Module not found: Error: Can't resolve './ods' in 'D:\khosroshahi\project\webpack\src\stimulsoft'
 @ ./src/stimulsoft/stimulsoft.reports.js 129:100617-100636
 @ ./src/vendor.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/vendor.ts

ERROR in ./src/stimulsoft/stimulsoft.reports.js
Module not found: Error: Can't resolve 'rgbcolor' in 'D:\khosroshahi\project\webpack\src\stimulsoft'
 @ ./src/stimulsoft/stimulsoft.reports.js 125:67-115
 @ ./src/vendor.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/vendor.ts

ERROR in ./src/stimulsoft/stimulsoft.reports.js
Module not found: Error: Can't resolve 'stackblur' in 'D:\khosroshahi\project\webpack\src\stimulsoft'
 @ ./src/stimulsoft/stimulsoft.reports.js 125:67-115
 @ ./src/vendor.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/vendor.ts

ERROR in ./src/stimulsoft/stimulsoft.reports.js
Module not found: Error: Can't resolve 'fs' in 'D:\khosroshahi\project\webpack\src\stimulsoft'
 @ ./src/stimulsoft/stimulsoft.reports.js 129:137288-137301 133:64066-64079 133:64725-64738 133:65408-65421 133:65942-65955
 @ ./src/vendor.ts
 @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/vendor.ts

我的项目在https://github.com/mohammad-javad-kh/webpack
谁能帮我吗?

0 个答案:

没有答案