All Questions
Tagged with webpack javascript
15,529
questions
1
vote
1
answer
25
views
Porting webapck from webpack 4.29.6 to 5.93.0
I'm trying to upgrade my application in electron, specifically from webpack 4.29.6 to 5.93.0, but I'm running into a problem that I can't solve. The error during compilation is this:
[webpack-cli] ...
0
votes
0
answers
14
views
TypeError: loaderUtils.getOption is not a function
EDIT
I am following a Full Stack Development Course by freeCodeCamp right here. When I run the command npm start to start React App, the browser is showing nothing.
When I back with my code I can see ...
-1
votes
0
answers
30
views
TypeError: Cannot read 'register' of undefined
Title:
TypeError: Cannot read 'register' of undefined
Description:
I'm developing a React application (kpiApp) using a specific framework. When I try to register my application, I encounter the ...
-1
votes
0
answers
40
views
Save function to json and load it back (external dependencies + webpack)
I'm trying to save a function into a JSON and load it back.
My code is as following :
import { Style } from 'external-lib'
function testFunction() { return new Style(); }
var str = String(...
1
vote
0
answers
59
views
Dynamically Import & Parse JSON Files Within a URI `File` Scheme - Serverless Environment
This problem that I'm facing is very unique to me and I hope it may not be to you. Essentially, I am working on a React project built with CRA and it won't/can't be hosted on a server. The goal of the ...
0
votes
0
answers
9
views
Rendering chunks in parallel to the entry file
enter image description here
enter image description here
I want to solve the following problem in js:
When the page refreshes, I have 1 entry file pulled up in html and after it has loaded, its ...
-4
votes
0
answers
37
views
Setting up project for developing RxJS app [closed]
I am trying to set up VS Code project for developing RxJS apps. I am following this article.
I am trying to connect to the server using this url: localhost:9000/ but I keep getting Cannot GET / ...
0
votes
0
answers
26
views
Webpack: How do I replace <use> tag with actual svg data?
My index.html uses a svg in this way:
<button class="button--settings" id="button_settings">
<svg role="img">
<use href="assets/images/...
0
votes
1
answer
23
views
nextjs import multiple components from index manifest imports everything
BACKGROUND:
I have a project where I have all my UI components in a /components directory.
Right now I export each component in its own file as:
export function Component1() { ... }
and import them ...
0
votes
0
answers
23
views
Why re-assign class methods to `this` in constructor in tappable Hook class?
Here is the code in webpack tappable source code:
class Hook {
constructor(args = [], name = undefined) {
this._args = args;
// ...
this.compile = this.compile;
this.tap = this.tap;
...
1
vote
0
answers
24
views
max-old-space-size not working while executing webpack command to build bundle
i have been getting javascript heap out of memory error while running webpack command to build my project
i have tried to put 4GB memory allocation to node for executing webpack
this is the ...
-3
votes
0
answers
28
views
Why is it that when I use a third-party packaged js file and modify its source code, the page does not take effect? [closed]
i used called maotu third-party lib [enter link description here][1] ,There are two features I don't need. I modified the source code, but it doesent't work.Specifically, on the page of the ...
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, ...
0
votes
1
answer
27
views
How to import global variables in webpack or rollup project
I want to create a module for CMS using Rollup or webpack.
I have a script tag that contains a few variables which I need to use in my webpack module, but I can't include them directly because these ...
-1
votes
1
answer
54
views
process is undefined when trying to provide environment variables to client code through webpack [duplicate]
I'm trying to provide access to certain environment variables in the front end code package by webpack, but process is always undefined. The application I'm working on is doing a bunch of extra stuff ...