Skip to main content

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.

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 ...
Lin Du's user avatar
  • 98.7k
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 ...
sieusaopolo15's user avatar
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 ...
Tharindu Sandaruwan's user avatar
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/...
F-H's user avatar
  • 943
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 ...
Pradeep Yadav's user avatar
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 ...
Cody Pritchard's user avatar
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 ...
Félix Jiménez González's user avatar
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 ...
robbymarston's user avatar
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) ...
Vahan's user avatar
  • 1
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 (...
Prabhav Mehra's user avatar
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 ...
Vivek Tiwary's user avatar
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"); ╵ ~~~~~~~ ...
Bharathi'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,723
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 ...
Rutwick Gangurde's user avatar
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,...
Abdul Basit's user avatar

15 30 50 per page
1
3 4
5
6 7
2854