All Questions
446
questions
0
votes
0
answers
13
views
the shacdn/ui install command not intepret @ correctly to /src
i want to ask and i need help with this
i tried to follow the documentations of the latest shacn/ui using vite
but when i ran this command npx shadcn-ui@latest init
it seems not installing components ...
1
vote
0
answers
19
views
how to resolve localhost not secure problem with vite?
I'm working on a personal project developed with react + tailwind + vite. in my sign-up component, I need to POST some information from the client side ( localhost:5173 ) to the server side ( ...
0
votes
0
answers
18
views
How to import react components from running vite dev into other web app
I want to write a component library in React and use it in a legacy app, but I want to be able to see code changes in the React code when I refresh the page.
Project A: A legacy web server that is ...
1
vote
1
answer
173
views
VITE:Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type
I am seeing the following error in the browser when I launch my web page for production.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of ...
0
votes
0
answers
60
views
Getting a Failed to resolve import error even though I am mentioning the correct file path and have exported the variables
I am trying to make a chatting application using React with Vite and Firebase using Google authentication.
I created a firebase.js file to contain the firebase SDK and credentials, when I am importing ...
0
votes
0
answers
30
views
import.meta.env is undefined in a React App built with Vite. I'm unable to use environment variables [closed]
I've scoured the internet for solutions but I can't seem to find any. Here's the error I'm encountering.
TypeError: Cannot read properties of undefined (reading 'VITE_BACKEND_URL')
I can't access ...
-1
votes
0
answers
103
views
Spam warning message "Third-party cookie will be blocked in future chrome versions" [duplicate]
Third-party cookie will be blocked in future Chrome versions as part of Privacy Sandbox.
Third-party cookie will be blocked in future Chrome versions as part of Privacy Sandbox.
I dont understand how ...
-1
votes
0
answers
49
views
Unexpected early exit. This happens when Promises returned by plugins cannot resolve. (Vite.js)
Whenever I try to build my vite.js project, it keeps throwing this error:
Unexpected early exit. This happens when Promises returned by plugins cannot resolve.
...
...
at process.handleBeforeExit (...
0
votes
0
answers
28
views
"npm run dev" works in Git Bash but not in PowerShell
I'm experiencing an issue where the command npm run dev works perfectly in Git Bash but fails to execute in PowerShell. Here are the details of my setup and the steps I've taken:
My Setup:
Operating ...
1
vote
0
answers
56
views
Vite Error : FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I'm encountering a "JavaScript heap out of memory" error when running npm run build on my Node.js project. The build process works fine during development (npm run dev), but it fails during ...
0
votes
0
answers
45
views
Module "http" has been externalized for browser compatibility. Cannot access "http.METHODS" in client code
I am following a yotube tutorial on how to make a twitter clone and I understand almost everything.
However, I am encountering an error like this express.js?v=2bb3381c:1288 Module "fs" has ...
0
votes
0
answers
34
views
REACT-VITE-DOCKER ERROR: Could not resolve entry module "index.html". error during build: RollupError: Could not resolve entry module "index.html"
Im migrating my existing React-Vite app into a docker container, but I keep getting this error when running the docker build command:
\> [email protected] postinstall > npm run build > vite-...
0
votes
0
answers
23
views
Multiple 'Restarting server/server.js' messages when using 'tsx --watch' in script
I've added a tsx --watch command to my package.json scripts to watch changes in my server file. Here's the relevant part of my package.json:
"scripts": {
"dev": "...
0
votes
1
answer
58
views
Prevent svelte build from including inline script as it violates CSP
I have a svelte + typescript app. I build the app with node-adapter and hosted it with the node+express+ts backend (which also uses helmet). The build produced by Svelte contains inline script, which ...
0
votes
0
answers
52
views
Use electron-forge's vite,typescript template to open child window in renderer.ts
I am trying to create a desktop app using the electron-forge vite,typescript template.
this:
https://www.electronforge.io/templates/vite-+-typescript
//main.ts
import { app, BrowserWindow } from '...