前端框架:angular2 ,基于angularcli工具
打包工具:webpack(angularcli默认打包方式)
引用方式:package.json >>> "wijmo": "../NpmImages/wijmo-amd-min"
文件引用:import * as wjcPdf from 'wijmo/wijmo.pdf'; import * as wjcGridPdf from 'wijmo/wijmo.grid.pdf';
编译期间提示:
WARNING in ./~/_wijmo@5.20172.334@wijmo/wijmo.pdf.js
13:3885-3886 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
运行期间提示:
Uncaught Error: Cannot find module "."
at webpackMissingModule (vendor.bundle.js:47050)
at u (vendor.bundle.js:47050)
at n (vendor.bundle.js:47050)
at vendor.bundle.js:47050
at e (vendor.bundle.js:47050)
at Object.<anonymous> (vendor.bundle.js:47050)
at Object.<anonymous> (vendor.bundle.js:47050)
at Object.../../../../wijmo/wijmo.pdf.js (vendor.bundle.js:47052)
at __webpack_require__ (inline.bundle.js:55)
at Object.../../../../../src/app/components/user/user-list/user-list.component.ts (main.bundle.js:3047)
|
|