Comments (13)
@WangHansen and if the same error occurs in Electron? Do you have any solution for this?
Edit:
I found a solution for myself 😉
All you need to do is add a white letter pack in the webpage configuration
In the file: webpack.renderer.config.js
let whiteListedModules = ['vue' , 'vue-json-excel']
And it works 👍
from vue-json-excel.
@jecovier Sorry about the late reply, was busy these days. It worked from the method in the link you provided, all it needed was ssr: false
when use it like describe in here
from vue-json-excel.
Hello, I'm gonna check this out. Never use it inside nuxt I assume it needs a little change (?) thanks for the comment
from vue-json-excel.
The same is happening to me when I use it under Electron/vue (https://github.com/SimulatedGREG/electron-vue
from vue-json-excel.
@WangHansen I could load vue-json-excel into nuxt following the steps describe in this article: https://medium.com/@codebeast_/why-your-third-party-plugin-dont-work-in-nuxt-and-how-to-fix-it-d1a8caadf422
Look for the "Second Attempt: Vue Plugins" part.
But when I restart the npm run dev process it throw an "render function or template not defined in component" error. Maybe it's a problem from my installation, could you try this solution?
from vue-json-excel.
@fjrial mmm, I think the problem is that nuxt and electron load the modules with require and this plugin use export... I try to rewrite the code to allow use require but I couldn't run the template
from vue-json-excel.
The only problem right now is I get this warning:
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.
from vue-json-excel.
Hi
I have the same problem when i use the plugin in nuxt project, is there any solutions?
Thanks in advance.
from vue-json-excel.
Me too. In dev and in prod
from vue-json-excel.
Any status about the issue?
from vue-json-excel.
maybe problem with server side rendering in this code
base64ToBlob(data, mime) {
let base64 = window.btoa(window.unescape(encodeURIComponent(data)));
from vue-json-excel.
i get this error when i run the Unit Test using Jest only. My application is not Nuxt app, its VueJS client side portal. Any suggestions ?
from vue-json-excel.
@WangHansen,如果在Electron中发生相同的错误?您对此有什么解决方案吗?
编辑:
我为自己找到了解决方案😉
您需要做的就是在网页配置中添加一个白色字母包在文件中:webpack.renderer.config.js
let whiteListedModules = ['vue' , 'vue-json-excel']
而且有效 👍
from vue-json-excel.
Related Issues (20)
- export fields
- Is it possible to set column width or auto-width in the header? HOT 1
- [Vue warn]: Property "$createElement" was accessed during render but is not defined on instance. HOT 2
- Multi-Line in XLS files
- Export as csv garbled
- Is it possible to align everything to the center? With some PROP
- Loading state management not triggered
- The computed property "fields" is already defined as a prop.
- escapeCsv prop not working to eliminate =" value HOT 4
- This plugin does not support vue3 HOT 3
- This button cannot be disabled
- 在win11中导出异常
- json导出的文件其实是一个后缀.xls的html的文件 HOT 2
- Columns show as currecy
- [Bug] When I re-render the :fields property HOT 2
- scientific notation HOT 1
- How to modify component length?
- How add column No.
- Customize Headers HOT 1
- Excel Prompt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-json-excel.