Skip to main content

All Questions

Tagged with
1 vote
0 answers
18 views

Dynamic import of package in my NPM library

Hej. I have dynamic import of animation library lottie in my component like: const { default: lottie } = await import( /* webpackChunkName: "lottie-web" */ "...
Sheppard25's user avatar
0 votes
1 answer
15 views

Webpack raw-loader/style-loader importing CSS file as JavaScript string instead of CSS content

I am using Webpack to build my chrome extension and I am trying to import a CSS file as a string so that I can inject it into a shadow DOM. However, when I import the CSS file, it is imported as ...
Joel Benjamin's user avatar
0 votes
0 answers
36 views

How to avoid imports that are not used?

I have class A which imports class B just to have an enum defined in class B. However, class B has heaps of imports that are useless to class A, and that increases the JavaScript size when the user is ...
Fulalas's user avatar
  • 127
-1 votes
0 answers
18 views

Impossible to use symfony ux react in a sylius project

I am currently working on a Sylius project and I would like to be able to use react components easily via twig. So I wanted to turn to Symfony ux react but it was impossible to load the components... ...
Thomas.V's user avatar
0 votes
0 answers
17 views

react version in hoist-non-react-statics file generated after build

I'm using viteJS with React for my web app. after running the build command npm run build it generate a hoist-non-react-statics-DD3vAyqj.js in assets folder, my actual react version is v18.3.1 but in ...
zedArt's user avatar
  • 487
0 votes
1 answer
16 views

How to use repack build multi bundle?

I'm trying to use repack in React Native to split my codebase into multiple bundles, but I'm facing some challenges. I've installed repack following the documentation and attempted some configurations,...
Ha0ran's user avatar
  • 669
0 votes
0 answers
18 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
1 vote
0 answers
43 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
6 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

Can Microfrontend Modules Run Independently Without a Host Application? [closed]

Can a microfrontend module be designed to run independently, without relying on a host app to load or manage it? I'm using React, Webpack, and various CSS-related dependencies. I want to ensure ...
Hridya S's user avatar
0 votes
0 answers
29 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
18 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
24 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
1 vote
1 answer
24 views

Webpack configuration not working for jsx file with babel lorder

When runing the react project which is configured with webpack and babel loder is giving and error saying unexpected token in jsx files.Please find bellow error snippit ERROR in ./src/index.js 10:12 ...
Tharindu Sandaruwan's user avatar
0 votes
0 answers
23 views

Icon Component with Dynamic SVG Imports vs Bundle Size next.js - v14.2.3

I am trying to create an Icon component in a Next.js application that imports SVGs dynamically without significantly increasing the bundle size. Despite using various methods such as require.context(),...
Kiran Raj R's user avatar

15 30 50 per page
1
2 3 4 5
755