Import LuckySheet in Vue Project

1u4esq0p  于 5个月前  发布在  其他
关注(0)|答案(2)|浏览(84)

Describe the bug
Demo project works fine, but when I try to use it in my project. I get error

ReferenceError: $ is not defined
at VueComponent.mounted (TechCardEditor.vue:36)
at invokeWithErrorHandling (vue.runtime.esm.js:1854)
at callHook (vue.runtime.esm.js:4190)
at Object.insert (vue.runtime.esm.js:3132)
at invokeInsertHook (vue.runtime.esm.js:6307)
at VueComponent.patch [as patch] (vue.runtime.esm.js:6526)
at VueComponent.Vue._update (vue.runtime.esm.js:3919)
at VueComponent.updateComponent (vue.runtime.esm.js:4037)
at Watcher.get (vue.runtime.esm.js:4440)
at Watcher.run (vue.runtime.esm.js:4515)

To Reproduce
Steps to reproduce the behavior:

  1. The first step
  2. The second step
  3. The third step
  4. See error

What is expected?
Clear Excel form

Environment

  • OS: Windows,
  • Browser Version: Chrome Version 84.0.4147.105 (Official Build) (64-bit)
  • Luckysheet Version: 1.0.1

Additional context
npm version
{
npm: '6.14.4',
ares: '1.16.0',
brotli: '1.0.7',
cldr: '37.0',
http_parser: '2.9.3',
icu: '67.1',
llhttp: '2.0.4',
modules: '72',
napi: '6',
nghttp2: '1.41.0',
node: '12.18.0',
openssl: '1.1.1g',
tz: '2019c',
unicode: '13.0',
uv: '1.37.0',
v8: '7.8.279.23-node.37',
zlib: '1.2.11'
}

hiz5n14c

hiz5n14c1#

If I add jQuery like

import $ from 'jquery'

I get another error message:

Uncaught TypeError: luckysheet.create is not a function
at HTMLDocument. (TechCardEditor.vue:39)
at mightThrow (jquery.js:3766)
at process (jquery.js:3834)

eqqqjvef

eqqqjvef2#

@OlegFromOmsk Hello Oleg! Sorry, but did you can find solution of this problem?

相关问题