All Questions
2,422
questions
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 ...
-2
votes
0
answers
59
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:...
0
votes
0
answers
22
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.
0
votes
0
answers
33
views
How to prevent tsup from adding a hash to imports?
I'm using tsup to bundle a TypeScript package. But it's adding a different hash to imports every time I bundle the lib. This isn't good for version control, since every time I try to make a PR it's ...
1
vote
1
answer
15
views
When use webpack-dev-middleware and when node_modules is updated, how to apply new node_modules code and recompile all
I find webpack-dev-server cannot auto update node_modules new code, so I try following
const webpack = require("webpack");
const webpackDevMiddleware = require("webpack-dev-middleware&...
1
vote
1
answer
71
views
"ReferenceError: fs is not defined" with Webpack 4
Good morning everybody.
I'm trying to test the "parse-kml" package but I receive several errors when bundling the script.
I tried with Webpack v5, but I had some problems due to a lot of ...
1
vote
0
answers
51
views
How to specify multiple entrypoints in Vite with Nuxt.JS
We're in the process of migrating our code over from a pure webpack/typescript/node model to using Nuxt.JS. Originally, for our backend we have 3 processes (4 including main) that were run ...
0
votes
1
answer
71
views
Webpack's ambiguous relationship with ES6 modules [closed]
Does Webpack support ES6 modules natively or not? This is a simple question but its answer seems to be more complicated than I initially thought.
On one hand, Webpack allows you to use ES6 syntax ...
0
votes
1
answer
71
views
'require is not defined' error when I try to run bundle.mjs created by webpack
I develop an app with node.js Fastify framework (typescript, ES syntax). I use Webpack to bundle the app and to compile typescript. The app bundles successfully, but when I try to run the resulting ...
-2
votes
1
answer
78
views
How to do conditional `import` in Webpack 5?
I'm building an app which has a server running in node, and a client running in browser. Both of them depend on a common utility file. This utility file needs one specific part to exhibit different ...
0
votes
0
answers
18
views
Bundle.js not found - webpack configuration for different environments
I'm facing an issue with my react application. I use webpack and for some reason the bundle.js that is being generated inside the dist folder is not being loaded on my QA environment. (it load ...
0
votes
0
answers
21
views
How to bypass localhost mapping through web pack
I have the following scenario: I have the domain name setup as mysite-recon.xyz.
I have the /etc/host file setup which maps the above URL to localhost:8030. All the react JS bundle files are fetched ...
0
votes
1
answer
198
views
Browserify Error: Uncaught TypeError: Unable to determine current node version in bundle.js
so I recently installed browserify into my application, and I'm getting this error in the Chrome Dev console:
bundle.js:10677 Uncaught TypeError: Unable to determine current node version
at ...
1
vote
0
answers
50
views
Webpack unable to load FontAwesome Kit (6.x) via NPM into JS of App?
I have an app in which I'm trying to load some JS into their own .js files (i.e. bootstrap will be loaded via bootstrap.hash.js, fontawesome will be fontawesome.hash.js)
I'm using webpack to do this - ...
0
votes
0
answers
27
views
How to stop Webpack from bundling server-side node modules
I am facing an issue with building and serving my Angular webapp. I understand the issue is related to using server-side node modules on the client-side or webpack including those modules in the ...