Connecting app.vue to index.ejs

Hi everyone. I'm having trouble integrating a Vue.js application into my index.ejs file. I am using vite and nodejs. Here are some details: Context: I'm trying to set up a Vue.js app on a index.ejs that takes an uplaoded image and shows it with a different style (so it is a dynamic thing), but the <div id="app"></div> remains empty. Issues Encountered: I expected it to behave like standard HTML, but it doesn't seem to be working. I've checked that Vue.js is properly included in my project. Questions: Is it possible to initialize a Vue.js application in an index.ejs file? Are there specific steps I need to follow to ensure Vue.js works correctly in this context? What should I consider on the configuration files? On the imgs it's the directory and the code for the configs. I just added again the sass and js to get on development while solving this. Also, It also throws me errors about not finding Vue. The index.ejs is connected to a script.js which it mounts on the app div. Thank you in advance for your help!
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?