Vue-awesome not integrating with electron-forge [ Modules with ES6 imports ] #36
Comments
This is probably related: #26 (comment) |
It sounds like the vue-awesome module still has ES6 import statements in it, not much we can do about that 😭 |
@MarshallOfSound there isn't any workarround that will help me? babel, webpack? something that can help me integrate this ? and just so that i understand in my case i was doing this
this is to import the theme for element-ui mentioned here and please let me understand where is the problem exactly? i don't really get it why electron doesn't support ES6 features like import |
Just want to point out my comment was just a guess, I haven't had time to look into this yet |
@MarshallOfSound wow your answer was fast thanks... i have updated my comment since then tho 😅 |
@gimyboya From a quick investigation it looks like what you actually want to do is import { icons } from 'vue-awesome';
No browser supports ES6 import statements, it hasn't been implemented anywhere AFAIK, the
Importing a css file is a webpack thing that doesn't make anysense in a javascript setting, it's just how they decided to do it. You wouldn't If you want to load that css you should do it through a link tag |
@MarshallOfSound Thank you very much for the quick support...
I am doing exactly that
Is there a way for me to transpile the code or use something like babel or webpack..? and if so any links to a working example? |
@gimyboya You don't want to be transpiling your |
@MarshallOfSound Thank you very much for your support i have finally found a workarround i will show my solution here for anyone with the same problem as me and i will mention it in the other project as well first i have copied the file
then i import the icon component as normal component and it works fine |
Please describe your issue:
I am just trying to use vue-awesome in my app and i tried all workarounds that i can think of but still can't find a solution to integrate it with
electron-forge
.The error:
My code
notice here that i am importing the
Icon.vue
component from my local folder simply because this lineimport Icon from 'vue-awesome/components/Icon
don't work for me.What does your
config.forge
data inpackage.json
look like?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem.
For a test case just try using vue-awesome in your project and let me know if it works
The text was updated successfully, but these errors were encountered: