webpack-5 Questions
3
Solved
When import 'semantic-ui-css/semantic.min.css' into a brand new Electron-Forge/Webpack5 project, I get the following:
UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=ut...
2
After migrating to webpack version= 5, I am getting run time error
Buffer is not defined. Reason: UNKNOWN at function_name (file_name:118)
while the build part goes through fine.
Webpack does it'...
Freer asked 8/4, 2021 at 17:58
1
I am getting this error message :ScriptExternalLoadError: Loading script failed.
(missing: http://localhost:3005/remoteEntry.js).
when trying to load a remote app from the container app in developm...
Spaceless asked 25/10, 2021 at 7:56
2
I have upgraded from Agular 11 to 12 getting below error for each SVG file.
Error: Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently...
Herrick asked 25/5, 2021 at 7:3
1
When I try to update from webpack 4 to webpack 5, I get an error.
Here is my new webpack.config:
const { merge } = require('webpack-merge');
const common = require("./webpack.common.js");...
1
Solved
After updating to Webpack 5, I'm getting this error:
Should not import the named export 'version' (imported as 'version')
from default-exporting module (only default export is available soon)
Sup...
1
I looked at the migrate guide https://webpack.js.org/migrate/5/ but its hard to understand what I need to change. the following is the error I get
[webpack-cli] Invalid configuration object. Webpac...
1
I have this Webpack configuration:
{
output: {
libraryTarget: "system",
...
},
...
}
I'm trying to use a Web Worker. I'm using the standard Webpack 5 syntax:
new Worker(new URL('./M...
Stringency asked 26/11, 2021 at 12:37
2
I am working on an architecture for a dynamic dashboard with components fetched from different remote react bundles using webpack 5 module federation. I do have different libraries which are shared...
H asked 18/2, 2021 at 5:22
1
I am trying to use Webpack 5 to bundle assets for a dynamic multi-page Django application. Using WebpackManifestPlugin and django-manifest-loader. I have this working fine for JavaScript, but I've ...
Cosher asked 24/9, 2021 at 8:37
1
Solved
Is it possible to use Webpack 5 to build an ES module bundle (with a default export), and then consume (import) that bundle in a Node.js ES module?
Here's a live demo of the following files.
I've...
Would asked 24/8, 2021 at 20:57
1
I try to configure Webpack 5 such it keeps the assets folder structure for my images and fonts.
I have the following structure:
- /app
/assets
/images
/topic1
/topic2
/fonts
In my webpack con...
1
I upgraded my webpack v4 to v5 as per this docs https://webpack.js.org/migrate/5 and after that I am getting this error.
TypeError: Cannot add property htmlWebpackPluginAlterChunks, object is not e...
Ted asked 8/7, 2021 at 13:1
1
I have to decode a CBOR encoded array using the cbor node module.
When i launch my command:
const decodedData = base45.decode(greenpassBody);
const output = pako.inflate(decodedData);
const results...
1
Solved
I've tried to add a HMR into my webpack 5 config and got a nasty error. First time it compiles properly, but when it comes to recompiling after code changes - it breaks with HookWebpackError: Canno...
Rustic asked 10/1, 2021 at 13:26
3
I am upgrading to Webpack 5 and I have an issue with the package jsonwebtoken (https://github.com/auth0/node-jsonwebtoken) that needs Buffer (at https://github.com/auth0/node-jsonwebtoken/blob/mast...
1
Webpack 5 deprecated null-loader, which was helpful for excluding certain imports from client-side bundles. Now, the docs say that I should use the resolve.alias option with false instead, however,...
0
I have a legacy React app which is should be updated from 16 to 17, webpack from v3 to v5 and babel. I had followed the offical webpack migration guides for deprecated plugins and configurations. H...
Monody asked 7/6, 2021 at 12:21
1
Solved
I'm having trouble getting Webpack 5 to output es5 compatible code while also using the "dependOn" entry parameter.
I'm using Babel to transpile my code, which works fine, but unless I se...
Twelvetone asked 24/5, 2021 at 11:17
0
I have been migrating a project from Webpack 4 up to 5 and have hit a snag. The --watch option is no longer working with my configuration, and I've tried everything I can find.
const webpack = requ...
Sovran asked 13/5, 2021 at 17:54
2
Solved
Using webpack 5 to build vue projects throws the error:
"Error: module property was removed from Dependency"
My understanding is webpack have removed a monkey-patch that vue is relying on...
2
According to this link (Terser documentation) if you are using latest Webpack 5, you don't need to install the Terser plugin as it is included in Webpack 5 out of the box. However, I am having a ha...
Poleyn asked 24/2, 2021 at 1:56
2
Solved
I am using latest version of webpack 5.3.2 with "clean-webpack-plugin": "^3.0.0". And apparently the plugin does not clean dist folder when I build.
Here's my webpack info:
Bin...
Breathe asked 31/10, 2020 at 0:13
2
Solved
I am creating a new react app and trying to configure webpack compiler from scratch.
The issue happens when running the build command with webpack -c config/webpack.config.ts - It gives an error as...
Apologete asked 19/2, 2021 at 13:14
1
Solved
Spoiler: I am leaning towards a Webpack issue rather than React (since with a plain React app, taken straight form create-react-app things work). But still, it only happens with React...
The main i...
© 2022 - 2024 — McMap. All rights reserved.