All Questions
2,948
questions
0
votes
0
answers
39
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 ...
1
vote
0
answers
43
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:
...
0
votes
0
answers
23
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.
1
vote
1
answer
110
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 ...
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....
1
vote
0
answers
31
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 ...
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 ...
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
├──...
1
vote
0
answers
244
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 ...
0
votes
1
answer
105
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 ...
0
votes
1
answer
35
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 ...
0
votes
0
answers
38
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....
1
vote
0
answers
69
views
Webpack and babel can't resolve TypeScript modules
I'm trying to import a module named Config from a services folder in my src directory, but I'm getting an error that the ./services/Config module can't be found.
Here's how I'm trying to import it:
...
0
votes
0
answers
26
views
Rollup : Uncaught TypeError: Cannot destructure property 'class' of 'object null' as it is null
I am trying to create a hyperapp application with Rollup. The hyperapp syntax should be written in JSX. So we need compiler to transform JSX into native hyperapp h function calls. The bundle is ...
0
votes
1
answer
89
views
React project compilation failing due to development browserlist
Our project uses react 16 and was created using create-react-app. By default, the browserslist in package.json is as below.
"browserslist": {
"production": [
">0.2%&...