vue-grid-layout
vue-grid-layout copied to clipboard
Vue3.0报错TypeError: external_commonjs_vue_commonjs2_vue_root_Vue_default.a is not a constructor
Software version (please complete the following information):
- Browser [e.g. chrome, safari]
- Vue Version [e.g. 2.5.7]
- vue-grid-layout Version: [e.g. 2.3.3]
Describe the bug A clear and concise description of what the bug is.
Please use the CodeSandbox Template to demonstrate your bug. It is much easier for us to help you if you do.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
same problem, holy shit
are you using vue 3?
yes
Use this - 3.0.0 Beta
https://www.npmjs.com/package/vue-grid-layout/v/3.0.0-beta1
or (if you are using browser )
https://unpkg.com/browse/[email protected]/dist/vue-grid-layout.umd.js
使用这个 - 3.0.0 Beta
https://www.npmjs.com/package/vue-grid-layout/v/3.0.0-beta1
或(如果您使用的是浏览器)
https://unpkg.com/browse/[email protected]/dist/vue-grid-layout.umd.js
3.0.0-beta1 Usage documentation Where can I find it?
same docs https://jbaysolutions.github.io/vue-grid-layout/guide/#npm @Eyran