I use "vue-grid-layout": "^2.3.11", this version. Of course, version 12 also has issues; IE11 doesn't work. I found that the package is written in ES6, and some properties are not supported by IE.
So first we configure babel-loader to transpile
I use vuecli3 as follows:
Done, run the code, we found the bug is fixed. If there is still an error,
Then we add
Reference it in main.js
Cannot get undefined or null
cnpm i babel-polyfill -D
import 'babel-polyfill'
Perfect solution
暂无评论。