Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-2 votes
0 answers
28 views

React library debugging and conribution. Debug Reactjs. Source code

I followed Development Workflow steps to start my research in React library. However, I got stuck on last step with build command yarn build react/index,react-dom/index --type=UMD When I run this line ...
The king Arthur's user avatar
-1 votes
0 answers
20 views

The command "yarn babel-node" throws an error [closed]

In a webpack project of the environment of VSCode,to learn ES Module and CommonJS,firstly I use the command "yarn add @bebel/node @babel/core @babel/preset-env --dev" to import some ...
风雪心's user avatar
0 votes
1 answer
30 views

How does AST traversal with Babel affect source maps even when no changes are made?

I have a custom Webpack loader where I'm traversing through the AST of the code using Babel to change the import name of a module. However, it seems like this is affecting the source maps of modules, ...
Saravanan's user avatar
  • 891
0 votes
0 answers
81 views

Module not found / build failed in my yarn workspaces monorepo

I am combining my React web application with my Expo React Native mobile app into a monorepo using yarn workspaces because they both need to share some utils, queries, etc. My file structure is ...
jchm's user avatar
  • 83
1 vote
0 answers
49 views

How can Babel transpile a Node.js module polyfill (e.g. buffer) to ES5?

I would like to transpile JS code which uses the Node 'buffer' to pure ES5 so it can run on Duktape (with Webpack and Babel). The code has been simplified in a test.js, which uses buffer and console: ...
Jean-Luc's user avatar
0 votes
0 answers
24 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.
Guru prasath's user avatar
1 vote
1 answer
146 views

NX Angular project with automatic polyfills depending on .browserslistrc

Our software needs to support old browser versions. Since Angular does not automatically polyfill for old browsers I would like to add this feature through a custom webpack configuration. I am using ...
Max's user avatar
  • 1,170
0 votes
0 answers
9 views

While downloading abernix:[email protected]...: error: certificate has expired

while running meteor remove standard-minifier-js && meteor add abernix:standard-minifier-js or meteor add abernix:standard-minifier-js getting below error. Any help would be highly appreciable....
vikas_g's user avatar
  • 31
1 vote
0 answers
33 views

Avoid using specific characters in variable names generated by webpack

Background I am developing small interactive snippets using React and MUI. These snippets are then bundled using Webpack (with a babel-loader). The resulting JS is then inserted as inline script into ...
schafran's user avatar
  • 679
2 votes
0 answers
45 views

How to reduce the compilation time of styles.scss in Angular

My styles.scss imports files as shown in the picture. styles.scss Every time I modify the content of one of these imported files, the recompilation takes more than a minute. I've searched for many ...
Alex Jim's user avatar
0 votes
0 answers
24 views

import/export class with webpack and babel

I am having this error when import/export JS class, but not with JS function. So I want to seek help here to fix this problem. I have this folder structure, with the following simple JS code: src ├──...
Tyler Bean's user avatar
1 vote
0 answers
321 views

mjs files from dependency are not being handled by babel or webpack

At my job we have a React library of components. One of those components use pdfjs-dist. We just updated the version of pdfjs-dist to fix an audit issue. The new version of pdfjs-dist now uses files ...
CodeMedic42's user avatar
0 votes
1 answer
108 views

My webpack is bundling my code very slow in React Express project

I have a monolith app it contains React and express. It bundles every time i change my code and it takes 30second in order to update my changes in the screen. Build time is approximatly 30 to 50 ...
Fazliddin Mirzaqosimov's user avatar
0 votes
1 answer
38 views

Webpack changes js class Names

I have a project written in React. I updated all the dependent modules in it and now, when building the bundle, I have a problem that the names of the js classes have been changed. If there was ...
Andrey RF's user avatar
  • 342
0 votes
0 answers
42 views

Migrating to React 17: Uncaught ReferenceError: React is not defined

After following all the steps mentioned in react website for migrating from react 16 to react 17 After removing react import I see following error Uncaught ReferenceError: React is not defined Babel....
Sdragon1ki's user avatar

15 30 50 per page
1
2 3 4 5
197