42,443 questions
Tooling
0
votes
5
replies
41
views
Large build size for Electron app using vite and electron-builder due to node_modules
I have an Electron app that I build using webpack + electron-forge. I consider to migrate to vite + electron-builder. The migration succeeded quite smoothly, and dev experience with vite is way better ...
1
vote
3
answers
98
views
Content not displaying in div using webpack
I am trying to print text and an image to a div using webpack but it does not seem to be working. Only the buttons display but the text and the image does not. Please can you take a look at my code ...
Tooling
0
votes
1
replies
68
views
Workbox service-worker with turbopack in production (next 16)
I want to create PWA that works offline (cache static assets, API requests, images, etc) and using PWABuilder make a native mobile app for android and IOS at once.
My tech stack:
- [email protected]....
1
vote
0
answers
80
views
Implementing a Chrome extension using Angular 21 and TypeScript [duplicate]
I’m trying to implement a chrome extension using Angular21. I need to compile background script, that is written using TypeScript. For this I need to compile background script inside Angular build. I ...
-1
votes
1
answer
103
views
Webpack and Ts-loader cannot generate a proper ESM JavaScript code to import a module and run it in Node
I am trying to convert a TypeScript file (test.ts) into an ESM JavaScript file (bundle.js) via webpack, ts-loader, and node (from NodeJS). For this purpose, I created a webpack.config.js and tsconfig....
1
vote
0
answers
112
views
webpack's bundle is pointing to typescript module.ts, instead of transpiling first to module.js and referencing to module.js
I have a main src/app.ts file in which i import a ./src/my-module.ts file.
The bunlde file ./dist/app.bundle.js (that i get after executing webpack command) still references to ./src/my-module.ts.
...
3
votes
2
answers
89
views
How to configure webpack with MiniCssExtractPlugin to avoid small js chunks?
In our webpack configuration we use MiniCssExtractPlugin to extract style to separate static files, it works fine, but when we use dynamic import for css it generates two files: one css and another js....
0
votes
0
answers
60
views
Error when wrapping import function in nodejs
I have the following code:
src/main.js
const importModule = async (moduleName) => {
const mod = await import(moduleName);
return mod;
};
const fs1 = await import("fs");
const fs2 = ...
1
vote
1
answer
97
views
Module not found: TypeError: Cannot read properties of undefined (reading 'tap'), The loader "./.component.scss" didn't return a string
I recently upgraded a microfrontend project built with Single-SPA and Angular from version 13 to Angular 18. After the migration, I noticed that the styles are completely broken or not loading as ...
1
vote
0
answers
43
views
Resolving “You may need a suitable loader to handle this file type” in Electron environments
I added firebase-electron to my Vue CLI Plugin Electron Builder project using yarn, but I encountered the following error.
I'm using Webpack 4.43.0.
How can I resolve this error?
error in ./...
0
votes
1
answer
72
views
How to integrate Vue.js 3 with SPFx 1.21.1?
I'm trying to develop my first SPFx (1.21.1) web part using Vue (3.5.22) without success. This is my package.json:
{
"name": "spfx",
"version": "0.0.1",
&...
0
votes
1
answer
62
views
Modern scss variable inheritance
We need to modernize our theme to avoid deprecations and security issues. As such, we are upgrading many node packages including webpack and sass. I'm having some trouble with inheritance.
I am very ...
0
votes
0
answers
44
views
onnxruntime-node native binding not found when packaging with pkg — need official way to load from custom path
I'm trying to bundle a Node.js CLI tool that uses @xenova/transformers into a single executable using pkg.
The build works fine, but when I run the packaged executable, I get this error:
Error: Cannot ...
2
votes
0
answers
36
views
Runtime Webworker errors after upgrade from angular 15 to angular 20
We are using webworkers that started throwing runtime exceptions in our prod bundles after the upgrade.
We're creating the worker with:
new Worker(new URL('.worker/worker', import.meta.url)
The error ...
1
vote
0
answers
90
views
Nx/NestJS - Empty dependencies list on package.json after build
I'm trying to create a Nx workspace(monorepo) with a NestJS app inside it (I'm fairly new to both Nx and Node.js/NestJS ecosystem).
I run the following command to create a new Nx workspace.
npx create-...