Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
7 views

Microfrontends - Module Federation - React - Vite - preact/signals-react - Not Working from remote

I'm starting a project from scratch. I would like to work with the signals feature from preact. Right now i can make **signals ** work locally on my host, but when i import a component from a **remote ...
David Drah Llensa's user avatar
0 votes
1 answer
21 views

require not defined error while deploy vite-react app

While deploying a vite-react app in Netlify I am getting white screen and require not defined error. I tried removing "type":"module" from packag.json file.enter image description ...
Mayank Kumar's user avatar
-2 votes
0 answers
25 views

React app is giving me CORS policy error. How can I fix it?

I'm trying to make a login page in React using Vite. To verify login credentials I have created an API in PHP. When I test the API with Postman it returns a data but with my react application it is ...
Muhammad Ahmad Chattha's user avatar
0 votes
1 answer
11 views

React Vite Module Federation remoteEntry.js "TypeError: Failed to fetch dynamically imported module"

Host application can't access the remoteEntry.js file of the remote app. Remote config // https://vitejs.dev/config/ export default defineConfig({ plugins: [ react(), federation({ name:...
Joshua Duxbury's user avatar
0 votes
0 answers
8 views

How to hide timestamps in react production after build in vite?

My phase of production is currenly at pentest, which I need to pass every test, even it's low. There's a pentest that says **Timestamp Disclosure - Unix** Description: A timestamp was disclosed by the ...
ioiofadhil's user avatar
0 votes
0 answers
38 views

ESLint config .mjs: TypeScript rules working, but plugins not applying

I've migrated my ESLint config to eslint.config.mjs and am trying to combine TypeScript and plugin rules: import html from "eslint-plugin-html"; import tslint from "typescript-eslint&...
Ar26's user avatar
  • 1,079
-1 votes
0 answers
12 views

When using public file path is shows error and when using file path from the working file everything is fine

In my project which is using react with vite as front-end and node.js as backend i have a problem when i want to access CSS files using public folder "/Styles/" header.css or footer.css i ...
guilty's user avatar
  • 1
-1 votes
0 answers
18 views

Why am I getting visits from USA in my app's analytics dashboard even though I am from India and i just deployed the app? [closed]

I just added vercel analytics to my app and deployed it. I am from india and i did not distribute the app link to anyone except visiting the site myself. Then why is my analytics dashboard showing ...
Abhiraj Chauhan's user avatar
0 votes
0 answers
9 views

Inertiajs +vitejs error using { eager: true } in import.meta.glob

I am biginner in inertiajs ecosystem. Therefore, I punctually follow the documentation of the technologies in question. In inertiajs documentation they say: "By default we recommend eager loading ...
pichurr0's user avatar
-2 votes
0 answers
31 views

How to clear the clutter from root directory of a vite project? [closed]

When I create a new Vite project with typescript and eslint i get a lot of config files in the root directory of my project. It bothers me as I like my code well organized, so I just want these config ...
Sudershan Singh's user avatar
-3 votes
0 answers
24 views

This repository on GitHub, is showing no error on localhost but when I am deploying it on netlify, the following error is coming on console [closed]

Error - Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for ...
15_Sneha Malik's user avatar
0 votes
0 answers
20 views

css modules import order with vite and mantine themed components

having an issue where I have a monorepo with turborepo using vite as the build system. I have a UI package and a react app package. The UI package includes custom components as well as themed mantine ...
MajorAtmosphere's user avatar
0 votes
1 answer
28 views

Post request working fine in Postman but not in browser

When sending SignUp and Login data through Postman, it's getting stored in Mongodb as well as showing success message but when requested through React axios, it is showing error in console as POST ...
mew's user avatar
  • 53
0 votes
0 answers
65 views

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html" react vite

I am deploying my react app in AWS S3 bucket. Everything works fine locally but each time a new build is deployed, then i get the error as : Failed to load module script: Expected a JavaScript module ...
Abiral Khadka's user avatar
0 votes
1 answer
12 views

Not able to load .env variables from the root directory into the react project built using Vite

So, the problem I am facing is that I have front-end code in the frontend folder and .env file in the root folder. When I try to import the env variables into the folder from the root directory it ...
Gurneesh Budhiraja's user avatar

15 30 50 per page
1
2 3 4 5
157