Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- The first step
- The second step
- The third step
- See error
What is expected?
A clear and concise description of what you expected to happen.
Screenshots or demo
If applicable, add screenshots or online demo to help explain your problem.We will be more accurate when we retest.
Environment
- OS: [e.g. Windows,Mac,Linux]
- Browser Version: [e.g. Chrome Version 84.0.4147.105 (Official Build) (64-bit), Safari,Firefox,Edge]
- Luckysheet Version: [e.g. 1.0.1,latest]
Additional context
Add any other context about the problem here.
8条答案
按热度按时间z8dt9xmd1#
same
yyyllmsg2#
same
avwztpqn3#
same my issue
Uncaught ReferenceError: $ is not defined
at luckysheet.umd.js:9:1
at luckysheet.umd.js:1:1
erhoui1w4#
"I have found the solution in ReactJS, you can add the following lines of code to your index.html file located in the public folder:
41ik7eoe5#
@Wb11G already found that trick, but need to avoid external links and import only local modules. Looking for better ways.
BTW, that not stable, sometimes does not work
uyto3xhc6#
I got luckysheets working in react without using script tags in
index.html
and without using react-helmet.You can use the following code with CDN
Alternatively you could modify it to use local npm package.
zzoitvuj7#
I got luckysheets working in react without using script tags in
index.html
and without using react-helmet. You can use the following code with CDN Alternatively you could modify it to use local npm package.that's not the point, the point is loading luckysheet as an import, not as an url.
83qze16e8#
Don't be rude, it is absolutely the point!
Reduce package size and profit from perfectly configured caching etc. by using CDN sources while not having to cram all those script tags into
index.html
To use the local npm package use the following code, copy the Luckysheet css files in some
styles
directory or where ever you want them and import them with regular cssimport
statements in the Component file