Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: luckysheet.create is not a function #8

Open
BinWayne opened this issue Jul 20, 2021 · 6 comments
Open

TypeError: luckysheet.create is not a function #8

BinWayne opened this issue Jul 20, 2021 · 6 comments

Comments

@BinWayne
Copy link

首先我自己有个 vue 项目,我在package.json 加入了
"core-js": "^3.6.5",
"luckyexcel": "^1.0.0",

其次我参考luckysheet-vue 项目里配置的 一些demo
直接复制到了我的项目中

当我进行 npm install
且成功启动我的项目后

开发网页 console 里面报错

TypeError: luckysheet.create is not a function
at VueComponent.eval (HelloWorld.vue?18db:298)
at Array.eval (vue.esm.js?efeb:1998)
at flushCallbacks (vue.esm.js?efeb:1924)

我是不是遗漏了什么

@zichenfang
Copy link

Uploading WX20210826-105537.png…

@2016011969sunyifang
Copy link

大佬解决了么 我也遇到了

@liming1010
Copy link

解决了吗,同样的错

@learnzxy
Copy link

需要在项目的html页面中引入Luckysheet的依赖

@learnzxy
Copy link

本地方式

<script src="./plugins/js/plugin.js"></script> <script src="./luckysheet.umd.js"></script> cdn方式 <script src="https://cdn.jsdelivr.net/npm/luckysheet/dist/plugins/js/plugin.js"></script> <script src="https://cdn.jsdelivr.net/npm/luckysheet/dist/luckysheet.umd.js"></script>

@fengdulalala
Copy link

先后引入关系,先引入plugin.js 再引入uckysheet.umd.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants