Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
621 views
in Technique[技术] by (71.8m points)

angular5 - Angular ag-grid Column rearrange works locally but not on server

Am using angular 5.2. Installed ag-grid version 22.1.1(npm i --save ag-grid-community ag-grid-angular) in my project, column rearrange using mouse works fine locally with ng serve as expected. But when uploading to the server I get below errors on Column rearrange (Other all ag-grid functionalities works fine like sorting, filtering..).

TypeError: Cannot read property 'column' of undefined
    at main.a4ea8f0196426ee19c7b.bundle.js:1
    at n.createDragItem (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at Object.getDragItem (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onDragStart (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onCommonMove (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onMouseMove (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.invokeTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at Object.onInvokeTask (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.invokeTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at t.runTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)

TypeError: Cannot read property 'getBoundingClientRect' of undefined
    at e.positionGhost (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onDragging (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onCommonMove (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.onMouseMove (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.invokeTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at Object.onInvokeTask (main.a4ea8f0196426ee19c7b.bundle.js:1)
    at e.invokeTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at t.runTask (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at t.invokeTask [as invoke] (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)
    at _ (polyfills.cb04d1c0add4edcf50ff.bundle.js:1)

Can some one help me with this. Thanks in advance.

question from:https://stackoverflow.com/questions/65859495/angular-ag-grid-column-rearrange-works-locally-but-not-on-server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...