从社区到企业的ag-grid升级

时间:2019-12-11 13:54:51

标签: angular webpack angular-cli ag-grid

我有角@ angular / cli 8.3.19

我的项目在社区版本下运行良好,但是当我进行以下更改时

import {AllCommunityModules} from '@ag-grid-community/all-modules';
to
import {AllCommunityModules} from '@ag-grid-enterprise/all-modules';

构建过程失败

ng build --verbose

<w> [webpack.Progress] 37511ms building
<i> [webpack.Progress] 77ms finish module graph
<i> [webpack.Progress] 135ms chunk graph
<i> [webpack.Progress] 69ms module optimization
<i> [webpack.Progress] 56ms advanced chunk optimization
<i> [webpack.Progress] 36ms before module ids
<i> [webpack.Progress] 52ms module id optimization
<i> [webpack.Progress] 28ms after chunk id optimization
<i> [webpack.Progress] 253ms hashing
<i> [webpack.Progress] 370ms chunk assets processing
<i> [webpack.Progress] 19ms additional chunk assets processing
<w> [webpack.Progress] 7450ms after chunk asset optimization
<w> [webpack.Progress] 1789ms emitting
**Generating ES5 bundles for differential loading...**
An unhandled exception occurred: Call retries were exceeded
See "/private/var/folders/1s/pwh7yh656jsbttp9c0383jnc0000gn/T/ng-8LZHsO/angular-errors.log" for further details.

error] Error: Call retries were exceeded
    at ChildProcessWorker.initialize (work/dm/test-platform/node_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21)
    at ChildProcessWorker.onExit (work/dm/test-platform/node_modules/jest-worker/build/workers/ChildProcessWorker.js:263:12)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

在抛出异常之前,版本会旋转一两分钟

从社区版本导入时,生成差异步骤很快

我尝试使用AllModules代替AllCommunityModules,并且发生了相同的事情

1 个答案:

答案 0 :(得分:0)

您可以将tsconfig.app.json目标从es2015改回es5并尝试吗?这可能会禁用差异加载