42,460 questions
2
votes
2
answers
81
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
58
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
74
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
41
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
50
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
56
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
37
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
34
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
75
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-...
0
votes
0
answers
30
views
Trouble getting WSO2 apim-apps (admin portal) to run locally on my system for contributing
When I run the admin portal of apim-apps, webpack compilation get succeeded but browser says cannot GET /admin. Publisher portal works and devportal also gives the same error.
Here's what I did
Got ...
0
votes
1
answer
26
views
Pug html loader & Webpack loader Error in Aurelia project
I'm experiencing an issue after attempting to upgrade some of my packages.
ERROR in ./src/tasks/tasks.jade
Module build failed (from ./node_modules/pug-html-loader/lib/index.js):
Error: A valid query ...
2
votes
1
answer
142
views
Angular DevServer: Webpack-dev-middleware ENOENT: No such file or directory Error
When trying to start an Angular development server, I'm encountering a webpack-dev-middleware error:
<e> [webpack-dev-middleware] Error: ENOENT: no such file or directory, '.'
<e> at ...
0
votes
2
answers
52
views
`core-js` with `@babel/preset-env` adds unnecessary polyfills and bloats bundle
I’m working on a web project built from an enterprise scaffold using webpack v5 and Babel. The target environment is Chrome ≥ 138 only.
However, I’ve noticed that the build includes unnecessary ...
1
vote
0
answers
30
views
How to use webpack to split chunks in this scenario
I have a single-page web application which started off small, and so code splitting was a complexity too far.
It has since grown and now has lots of pages, and most pages have some library ...
0
votes
0
answers
94
views
npm run build not working for the specific Next.js project
Creating an optimized production build ...
glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\LENOVO\Application Data'] {
errno: -4048,
code: 'EPERM',
syscall: 'scandir',
...