All Questions
1,325
questions
0
votes
0
answers
7
views
Codespaces Preview url doubled
I run a vue app in codespaces and when I start the preview server through vite the url in the browser bar is doubled:
https://blabla-pxjcg97-3000.app.github.dev/https://blabla-pxjcg97.github.dev/
...
0
votes
1
answer
14
views
Cannot Import local module/file in Electron-vite (vue)
index.js(entry point of electron)
import { connect } from "./MongoDB";
MongoDB.js
module.exports = {
connect,}
error-
> electron-vite dev
vite v5.3.4 building SSR bundle for ...
0
votes
1
answer
18
views
web.config failed to rewrite index.html when a baseURL is added to sub directory in Vue 3 app with Vite
Currently working on a Vue 3 app which deployed using Azure web apps. When I deployed it to the root and used web.config it worked fine, But I need to add a Base URL. For that, I have added the ...
0
votes
0
answers
13
views
pathMapping in vs code debug is not working
I have the following as my launch.json file
{
"version": "0.2.0",
"configurations": [
{
"name":"Launch vite:dev",
"request&...
0
votes
0
answers
27
views
Histoire not working with custom Vue component
I am trying to integrate Histoire in my Vue project (with Vite) and I successfully integrated it by creating a new component. But when I try to integrate it with an existing component of mine that ...
0
votes
1
answer
32
views
How to implement 3rd party data fetches in Vite + Vue web-application?
I want to use 3rd party function (actually, it is mine, but written in different time and different file), which requests data via fetch function.
In my Vue + Vite application I import that function ...
0
votes
0
answers
21
views
How can I use path aliases in a library in a way that aliases are resolved when used by library consumers?
I am building a vue storybook component library with vite called my-storybook. I configed it to resolve alias @ to /src.
// .storybook/main.js
module.exports = {
// other configs
// ........
...
0
votes
0
answers
37
views
How can I configure routes in a Vue.js application to handle query parameters?
What configurations are required in my routes to handle the query parameter userActivity for a URL like https://somesite.com/feedpool?userActivity=false?
I'm using Vite as a build tool, with the base ...
0
votes
0
answers
19
views
What is a good way to prevent file getting renamed when running npm run build
I am running npm run build for production and this is my script code.
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .vue,.js,...
0
votes
0
answers
26
views
How do I load CSS from node_modules dynamically in Nuxt 3?
I am trying it like this:
loadFont(font: Font) {
if (state.fontsToLoad.includes(font)) return
switch (font) {
case "poppins": {
import("@fontsource/...
0
votes
0
answers
24
views
Vite places main.js in different folder
I have a Vite project. I placed main.js in different folder
I set rollupOptions in vite.config.js
But when I input "npm run dev" in Vite CLI and opened URL in browser, there still appeared ...
0
votes
0
answers
24
views
Unable to change base URL of vite while server is running on devlopment mode
I have one vue app underneeth im using vite as a bundler.
In vite i'm not able change base url while app is running on development mode.
I want to change the base url because , i am using nginx ...
0
votes
1
answer
195
views
Cannot read properties of undefined (reading 'Vue') at initBackend, how can i solve this error?
I’m working on a Vue 3 application using Pinia for state management, and I’m encountering an issue where added messages are not rendering on the screen. Additionally, I’m getting a persistent error in ...
0
votes
0
answers
37
views
Failed to resolve vue/compiler-sfc when I try to install Caldera
I try to install Caldera by following the steps explained on this link https://caldera.readthedocs.io/en/latest/Installing-Caldera.html
I succeed to install every package on the file requirements.txt ...
0
votes
0
answers
27
views
Electron Forge with Vue 3 integration doesn't work
i want develop an Electron app integrated with Vue 3 using electron forge.
I've followed this official documentation
Electron Vue integration .
But when i run the command
npm start
the application ...