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

All Questions

Tagged with
0 votes
0 answers
19 views

Content not from webpack is served from '/app' directory (Docker / Webpack)

I'm using Webpack configuration with docker. Everything working well as development step. However this is not working for my preproduction and production step. The difference between these steps is ...
Srevinu's user avatar
  • 369
1 vote
0 answers
19 views

max-old-space-size not working while executing webpack command to build bundle

i have been getting javascript heap out of memory error while running webpack command to build my project i have tried to put 4GB memory allocation to node for executing webpack this is the ...
Vikram's user avatar
  • 60
-7 votes
0 answers
34 views

Creating Framework for using Vanilla Webpack [closed]

Hi I'm jade any suggestion on creating a framework? I am familiar with node but is wepback is the king of framework or just node is best for server...... I'm studying web development for 1.5 years now ...
jade leonard miano alvez's user avatar
0 votes
0 answers
12 views

Trying to use dotenv or config in react app and getting: webpack < 5 used to include polyfills error, tried creating webpack config, doesn't work

i'm getting this error below trying to use both dotenv and config. I've got a Typescript React App, just installed and need to use environment variables. I don't have webpack installed as a dependency ...
Kevin A.'s user avatar
  • 137
0 votes
0 answers
18 views

Webpack dynamic import in node.js app doesn't work: MODULE_NOT_FOUND

I am trying to import a js file at runtime: const migrationsDir = path.resolve(__dirname, '../migrations/tenanted'); import(path.join(migrationsDir, '1681831306977-initial-schema.js')) .then(() =>...
Vololodymyr's user avatar
  • 2,178
0 votes
0 answers
14 views

Can't run TypeOrm migrations with webpack: MODULE_NOT_FOUND

I have node.js app built with webpack. I am following this FAQ My webpack config has one entrypoint for the migrator script, and multiple entrypoints for migration files: const commonConfig = require('...
Vololodymyr's user avatar
  • 2,178
2 votes
1 answer
75 views

Problem when requiring packages bundled with webpack

I'm able to use libraries with node like: const API = require("api"); const Service = require("service"); however, when I bundle the js file with webpack, it doesn't work and I ...
user17952421's user avatar
0 votes
0 answers
13 views

Can't resolve './zstd.win32-x64-msvc.node' in ...node_modules/@mongodb-js/zstd

I have a react node js typescript project I'm working on via my m2 chip mac where I'm trying to get MongoDB and mongoose setup on. I've installed the basic mongodb package via npm and am getting the ...
Niko Icardo's user avatar
0 votes
0 answers
30 views

Vue3 Openlayers + webpack = can't resolve modules

webpack fails to resolve modules dependencies when compiling I got 94 erros like this: ERROR in ./node_modules/vue3-openlayers/dist/vue3-openlayers.es.js 63:0-41 Module not found: Error: Can't resolve ...
Sam's user avatar
  • 1,737
-2 votes
0 answers
63 views

Error while running react - electron in browser - Uncaught ReferenceError: require is not defined

I am tryin to make a electron - react application and while running i am getting a error on the console of the browser. Uncaught ReferenceError: require is not defined at Object.events (bundle.js:...
Sherlock-Holmes-2-2-1's user avatar
0 votes
0 answers
13 views

how to import a plugin to a Typescript electron app with plugin system manager?

i'm in the process of making an electron app that will support a plugin system that will not cause any changes in the app it will only load components which are the plugins i want to load. and im ...
ryusuke's user avatar
1 vote
1 answer
685 views

PDFjs-dist - TypeError: Promise.withResolvers is not a function - Webpack Node JS

I've got the following "service" which is trying to extract the text from a PDF file but when it runs I am getting the same error every time no matter whether I point it at the main build (...
Ryan Durrant's user avatar
1 vote
0 answers
45 views

How can Babel transpile a Node.js module polyfill (e.g. buffer) to ES5?

I would like to transpile JS code which uses the Node 'buffer' to pure ES5 so it can run on Duktape (with Webpack and Babel). The code has been simplified in a test.js, which uses buffer and console: ...
Jean-Luc's user avatar
0 votes
0 answers
23 views

React App remoteEntry.js is having html instead of JavaScript code

React App remoteEntry.js is having html instead of JavaScript code actual file from tgz file has js code but in browser inspect it shows html, any help is appreciated. Thanks.
Guru prasath's user avatar
4 votes
2 answers
419 views

Angular 18 and SignalR error when building app : [ERROR] Could not resolve "url", "https", "http", "util" from eventsource

In an Angular 18 application, I need to add real-time technology. The chosen technology is SignalR, but I'm having trouble adding the package and getting a successful build. It seems the error is ...
hsantos's user avatar
  • 573

15 30 50 per page
1
2 3 4 5
379