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

Questions tagged [vite]

For questions about using Vite, a two-part build tool (dev server + build command) that aims to provide a faster and leaner development experience for modern web projects.

0 votes
0 answers
5 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
20 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
0 votes
0 answers
11 views

Where to store a frontend-environment variable in Jhipster (Stripe publishable key)

Stripe accounts come with test and prod, publishable and secret keys. The application is generated by Jhipster. Regarding the publishable keys, I want to pass them as environment variables to use ...
julienKW's user avatar
0 votes
0 answers
3 views

Migrate conditional custom element compilation in Svelte Rollup config to SvelteKit Vite config

In my Svelte 3 component library I'm using this Rollup configuration to conditionally render custom elements. Only files with the *.wc.svelte extension are compiled as HTML5 web components. export ...
david's user avatar
  • 2,587
-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
0 answers
11 views

Electronjs + Sequelize + SQLITE3 + VITE

I can't load extra file in main process. I'm trying to use sequlieze and sqlite3 with electronjs but this error blocking me. How can i fix this? Thank you. Error: Cannot find module './database/models/...
Adrian Caragea's user avatar
0 votes
0 answers
13 views

genSourceMapUrl - Cannot create a string longer than 0x1fffffe8 characters

I am not the greatest at node build issues. ERROR Internal server error: Cannot create a string longer than 0x1fffffe8 characters ...
Jamie Marshall's user avatar
0 votes
0 answers
9 views

@vite/client throws errors with file extension is used in Angular Dynamic Routing

I'm trying to implement dynamic routing in Angular that includes file extensions (e.g., "a.pdf"). However, I'm encountering an error related to @vite/client, which is used by @angular-devkit/...
Api's user avatar
  • 1,771
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
7 views

Using TypeORM in Nuxt 3

I am trying tu use TypeORM in a Nuxt 3 application. [email protected] [email protected] I added TypeORM as a plugin: // plugins/typeorm.ts import 'reflect-metadata'; import { defineNuxtPlugin } from '#app'; ...
nicodel's user avatar
  • 11
0 votes
0 answers
9 views

Smart Order Router: Could not parse fraction

When using the smart-order-router (all latest, though also tried verisons previously working on cra) with Vite, I receive a Could not parse fraction error each time I try to get a route from the smart ...
Ethan's user avatar
  • 180
0 votes
0 answers
11 views

require index.cjs not work in vite with puppeteer

I use electron to create a desktop app, and with vite to complie js file, I find vite seem not work with puppeteer, in the file vite generate, it always have error: ./build/index.cjs module not find I ...
Jianze Zeng'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
17 views

Keep getting error `[vite]: Rollup failed to resolve import "tslib" from "/vercel/path0/node_modules/.pnpm/[email protected]` upon deployments to vercel

I am building an AstroJS project with Sanity as CMS - on my development environment everything works fine and the build is also successful But when I try to deploy the project to vercel, I keep ...
NaineeL SoyantaR'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

15 30 50 per page
1
2 3 4 5
446