Skip to main content

All Questions

Tagged with
0 votes
0 answers
23 views

react version in hoist-non-react-statics file generated after build

I'm using viteJS with React for my web app. after running the build command npm run build it generate a hoist-non-react-statics-DD3vAyqj.js in assets folder, my actual react version is v18.3.1 but in ...
zedArt's user avatar
  • 487
1 vote
0 answers
16 views

Alternatives to libInjectCss from vite-plugin-lib-inject-css

I'm on the process of building a Vite application and I can see that the build generates three files which are significantly big. myProject.js 37kb myProject.umd.js 3671kb main.css 3657kb This is ...
Félix Jiménez González's user avatar
0 votes
0 answers
56 views

Faild to resolve component quasar framework

i'm trying to import my custom components inside main layout file, using quasar faramework but i constently giving this message "failed to resolve component", if i import them directly in ...
Ramin Samery's user avatar
0 votes
0 answers
49 views

Using vite components in a react + webpack app slows the build process

Edit For some reason, webpack is not recognizing the vite project as a node dependency (which should, as it comes from node_modules), any ideas? Webpack analyzer for vite dependency + webpack Webpack ...
Félix Jiménez González's user avatar
0 votes
0 answers
14 views

"Avatar" is not exported by "../avatarium/dist/main.js" even though it is?

https://github.com/sfreifeld/avatar-testing Ok I have been playing with this all day and can't figure it out. I'm new to programming in general, but this is my first attempt with Typescript and with ...
Sabrina Freifeld's user avatar
3 votes
0 answers
37 views

dynamically include or exclude capacitor plugins in a quasar webpack or vite project

I am trying to build an app that will both have a web spa and android apk. I am using quasar cli with webpack (also have an alternate with vite). I am using webpack since I could use require, I know ...
Barty's user avatar
  • 304
0 votes
0 answers
42 views

How to bundle NodeJS Backend Application to Windows Executable (With Typescript Decorators)

I want to bundle a NodeJS Application (Express Server) that is also using Typescript Decorators (through GraphQL Modules) into a single executable. This executable should be "shipped" to ...
JoJ's user avatar
  • 163
0 votes
0 answers
65 views

Error in import default from css file using vite and webpack

I'm trying to migrate from Create react app to Vite. But now I have the following error in on of the packages that I use in my React app. [vite] connecting... client.ts:19:8 [vite] connected. client....
Mateus Gonçalves's user avatar
3 votes
0 answers
122 views

Angular 17 works with Webpack or Vite? (Polyfills)

When I create an Anglar17 application I see when I launch it that in the console it displays “Vite connected”. But at the same time the @angular-devkit/build-angular package seems to depend on webpack....
Mayzz's user avatar
  • 166
0 votes
1 answer
116 views

React with Vite v5 does not code split SCSS files into multiple CSS chunks in production build

I want to enable CSS code splitting with my .scss files using Vite, but for some reason it only works in dev and when I do a production build, I only get one index.css file. I have no idea why this is ...
mssp's user avatar
  • 305
1 vote
0 answers
45 views

CORS breaks in Vite dev server but works in Webpack dev server

Most of our development uses a mock backend server running on the same machine as the Vite/Webpack dev server. We also need to connect the local dev server to the "real" Java BE server ...
Jordan Everscending's user avatar
0 votes
0 answers
33 views

How to bundle a Create React App into a single embed.js file for embedding in any website?

I'm working on a React app using Vite and I want to create a single embed.js file that I can include in any website to load my widget. The embed.js file should contain both the JavaScript and CSS. I ...
Junaid's user avatar
  • 11
0 votes
1 answer
74 views

WASM module not loaded inside web worker

I'm failing to load a simple WASM function, which sums two numbers, inside my web worker. I tried it inside my main/index script which is working fine. However, moving the code into the web worker ...
Theiaz's user avatar
  • 670
3 votes
0 answers
348 views

Angular 17 Vite + ESBuild bundle size increase

I've updated an Angular 17 project to the new Vite + ESBuild build system, and noticed that the bundle size increased: WebPack Build: ESBuild + Vite Build: The new Vite + ESBuild version built the ...
Ricky's user avatar
  • 3,042
1 vote
0 answers
69 views

Uncaught TypeError: Cannot read properties of null (reading 'useContext') while using monorepo setup using lerna

I am using Lerna to setup a monorepo, when I import the package into another application I am getting below errors. react.development.js:210 Warning: Invalid hook call. Hooks can only be called inside ...
shaik Mohd Irfan's user avatar

15 30 50 per page
1
2 3 4 5
11