Questions tagged [webpack]
Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it can also transform, bundle, or package just about any resource or asset. Webpack takes modules with dependencies and generates static assets representing those modules. Webpack enables extensibility and promotes best practices in web architecture and performance.
webpack
42,798
questions
0
votes
0
answers
18
views
TS target config does not support browserlist
It seems TS target config does not support browserlist's browsers versions like "Chrome >= 48", found related issue#19183 and issue#53373.
I created a utils package, currently, I set the ...
0
votes
0
answers
27
views
My webpack is building old lodash version
I'm having some troubles with my webpack when building source for deployment. Built files are always created with [email protected]. How can I exclude the lodash from the build process or upgrade it to ...
0
votes
0
answers
21
views
How to correctly configure package dependancy for microfrontends using webpack and react?
I have project with microfrontend using react and webpack. In the container app also I am using antd library. Then I created the microfrontend app and used as remoteEntry in container app. I was able ...
0
votes
1
answer
27
views
How do I find out what causes a "Debug Error" in TypeScript's compiler?
When running nx serve (using NRWL NX) on my TypeScript project, the build now fails with this error:
<my-file>.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/...
1
vote
0
answers
48
views
Utilize react component over URLs dyanamically
I have a React component say TEST.TSX , I have compiled the .tsx file to .js and uploaded it to GitHub, so that I can server it over JsDelivr. Can I use the CDN in another react app to utilize the ...
1
vote
0
answers
59
views
Angular - esbuild chunk names
I just upgraded an Angular app from v17 to v18, and during the process I made the move from using webpack to now building with esbuild.
Im trying to understand the code splitting and chunk names with ...
1
vote
0
answers
20
views
Alternatives to libInjectCss from vite-plugin-lib-inject-css
I'm on the process of building a Vite application and I can see that the build generates three files which are significantly big.
myProject.js 37kb
myProject.umd.js 3671kb
main.css 3657kb
This is ...
0
votes
0
answers
16
views
TypeScript project can't find UMD module during import
I created a library of React components built with TypeScript and compiled into UMD using Webpack. When I try to import one of those components into a separate TypeScript project, I get the following ...
0
votes
0
answers
28
views
Building JSX in a WordPress plugin, can't get Webpack to watch / build from assets folder into dist?
I started to create a new Wordpress plugin and want to know what is a good structure/way to implement a build of my all javascript files (keeping their directory structure in the dist/build folder) ...
0
votes
0
answers
45
views
Missing loader using MUI date picker storybook
I am unable to use MUI date picker in a storybook with the below error
ERROR in
./node_modules/@mui/x-date-pickers/DesktopTimePicker/DesktopTimePicker.js
45:52 Module parse failed: Unexpected token (...
0
votes
0
answers
21
views
Invalid hook call in react-redux provider
I am trying to migrate from Parcel 1.0 to Webpack 4, I am using React 16.14, Node: 18.20, Npm 10.7.
Getting below error when running webpack serve
Invalid hook call. Hooks can only be called inside of ...
0
votes
1
answer
33
views
Dynamic require of 'https' is not supported error while generating cypress cucumber report in v 10
✘ [ERROR] Could not resolve "https"
node_modules/@ng-apimock/cypress-plugin/dist/cypress.plugin.js:4:22:
4 │ const https = require("https");
╵ ~~~~~~~
...
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 ...
0
votes
0
answers
34
views
'stats' not allowed in Vue 3 cli?
I am trying to generate a stats report for my Vue 3 project. There is no way I can enable stats. I currently use webpack-bundle-analyzer to view a map of the bundles, but enabling a report for it ...
1
vote
0
answers
63
views
Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function [closed]
I'm new to next.js and I'm facing this error from past two days but can't find any way to debug it:
Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
after deep research,...