Category "webpack"

Uncaught ReferenceError: process is not defined in webpack

I was working on a React app with typescript. I got it working, then I wanted to add css-loader and changed the webpack from 4 to 5 and updated all packages to

Uncaught ReferenceError: process is not defined after upgrading from vue cli v4 to v5

I'm working on an app where I've updated the frontend to use vue cli v5 from v4 and am getting a runtime error: Uncaught ReferenceError: process is not defined.

How to build a un-minified version of Shopware 6 administration scripts for debugging purpose?

I would like to debug the following not-very-helpful error message when trying to save a custom CMS component in Shopware 6 administration layout editor: An err

Webpack Source Map Export Compiled JS

I was using webpack 3, there was no hot reload issue and then I upgraded to webpack 5. Webpack version: ^5.50.0, React version: 17.0.2 Webpack source map doesn'

How to fix Error with alchemy-web3 - Webpack < 5

interact.js require('dotenv').config(); const alchemyKey = process.env.REACT_APP_ALCHEMY_KEY; import { createAlchemyWeb3 } from "@alch/alchemy-web3"; const web3

How to fix Error with alchemy-web3 - Webpack < 5

interact.js require('dotenv').config(); const alchemyKey = process.env.REACT_APP_ALCHEMY_KEY; import { createAlchemyWeb3 } from "@alch/alchemy-web3"; const web3

Laravel mix compile progress stuck (WSL)

I'm not sure if there is an issue here but it's been bothering me for a while. Whenever I'm using Laravel mix the various progress bars never complete and there

ERROR: Webpack < 5 after installing web3 and implementing into React Native App.js

I am getting an error after trying to install and use web3 into my react native website, that I am building to learn more about web3 development. After installi

is there any difference between this commands to install webpack? "npm install webpack webpack-cli --save-dev" & "npm install -D webpack webpack-cli "

Hello everyone I´m learning about webpack and i saw this two ways to install it, I was wondering if there is any difference between this two ways: this on

Module not found: Can't resolve 'regenerator-runtime' in next js 12.1.5 with react 18 with node 16

My package.json is like "scripts": { "dev": "next dev" }, "dependencies": { "next": "^12.1.5", "react": "^18.0.0", "react-dom": "^18.0.0"

Lodash-es with Typescript and Webpack module error

I want to use lodash-es to be able to import only the functions I need, but I get an error. import { camelCase } from "lodash-es"; //... console.log(camelCase('

How to get Digitalocean environment variable?

I set an environment variable in Digitalocean with token, but I don't understand how to use it in the code. I scrolled through the docs, but didn't get anything

Angular 8 ERROR Error: Unable to find context associated with [object HTMLDivElement]

Just another day in the office, right? What once worked is no longer working. Yay! I am supporting an Angular 8 web application and attempting to kickstart loca

Importing React as default module not working inside Symfony Webpack Encore project

I have a Symfony project, where the frontend-pipeline is built with Webpack Encore, I would like to add React to the project and have a React widget inserted in

using webpack to import files dynamically inside react component

const LongDetail: React.FC<Props> = ({ id, section, placeholder, Fromtolocation, }) => { const { setPrimary, setSecondary, create

Typescript const enum alternative

More and more modern Typescript transpilers have moved toward a strategy of per-module transpilation, which significantly increases build speed, but eliminates

"Module not found" when migrating to Webpack 5

I am trying to migrate my React app to webpack 5.72.0 (from 4.42.1). So I also have webpack-cli (4.9.2), webpack-dev-server (4.8.1) and babel (7.17.9). My probl

Module not found: Error: Can't resolve the typescript file when adding typescript to a CRA app

I'm trying to add typescript to my project and write new components with typescript. I followed the documentation but I'm got this error:can't resolve [the type

How to create a global string in a vue (webpack) project

In my vue project I have a default image that should show up in places around the app when an image is missing or hasn't been uploaded yet. I have various class

Webpack is still parsing unused/unreferenced/not-entrypoint files [duplicate]

I have the minimal Typescript+Webpack setup from the doc, with the following files : Files src/ index.ts // only a console.log in here unused.