Category "webpack"

Uncaught ReferenceError: process is not defined - React-Rails

Components aren't rendering because of the Uncaught ReferenceError error. The error is thrown in one of the React API files (see the code in question below). I'

Can't load popper.js with webpack and Laravel mix

I'm using bootstrap 4 beta and Laravel 5.4 on my project and loading my js dependencies with npm and laravel mix. So far everything has been working great, exce

IMAGE: You may need an appropriate loader to handle this file type

I can't figure what is the proper loader to load images in ReactJS webpack, May you give me a hand? I get this error: Module parse failed: /Users/imac/Desktop

How configure Jest when using react-app-rewired and customize-cra?

I am trying set up tests with Jest in a create-react-app that is using the override function from customize-cra and react-app-rewired. I have set up a relative

Deploy react on an esp32 with 32 character file name limit

I would like to deploy a react application on a web server on an esp32 micro controller, to control an api on that same micro controller. The web server is work

Importing SVG as React component not working with Next.js

I created a project with create-react-app using Typescript and latter I was asked to add next.js to it, what happend was that it broked some svgs across the app

Powerapps code components with react and web3

I am doing a very simple powerapps code component project using react and web3. As soon as I build the project, I get a bunch of errors. Many of them I managed

Docker "Invalid mount path app/symfony" must be absolute

Im trying to setup Webpack to run with docker. I'm looking to put it in its own container, build the files and then nginx will serve that produced code on its c

extract-text-webpack-plugin replacement in webpack 5

I'm working on the project upgrading from webpack 3 to webpack 5. In the project, it was using raw-loader and extract-text-webpack-plugin to parse imported html

import json file in react, webpack config error

I am trying to import a json file into my code. The js file for the same is import React from 'react'; import ReactDom from 'react-dom' ; import $ from 'jquery

Why is webpack encore required only in dev

I'm currently configuring some docker images for a symfony 5 project and trying to deal with the production build. Doing so, I noticed that webpack encore is in

Why is webpack encore required only in dev

I'm currently configuring some docker images for a symfony 5 project and trying to deal with the production build. Doing so, I noticed that webpack encore is in

image-minimizer-webpack-plugin generator keep originals

When i load an image in my webpack i want to optimize that image AND make a webp of that image. Im using image-minimizer-webpack-plugin with minimizer AND gener

How to add Font Awesome to Next.js project

I'm trying to add font-awesome to my Next.js project using webpack. I've tried following various instructions I've found on the web (using file-loader, url-load

html-webpack-plugin not working with webpack-dev-server

Webpack, you'll be the death of me. html-webpack-plugin works fine in production. The 'dist' folder is loaded with my html template and the bundle inserted. O

failed to inference ONNX model: TypeError: Cannot read properties of undefined (reading 'InferenceSession')

I tried to replicate the example found here: https://github.com/microsoft/onnxruntime-inference-examples/tree/main/js/quick-start_onnxruntime-web-bundler: impor

CORS error even after setting Access-Control-Allow-Origin or other Access-Control-Allow-* headers on client side

I have a Vue application generated with webpack-simple option. I am trying to make a GET request to https://api.forismatic.com/api/1.0/?method=getQuote&form

Webpack how to negative match resource query

How can I add a resource query to my Webpack configuration so that if a require statement contains a query string, Webpack skips the loader I've specified in th

After update to angular 13 my tests are not running

When trying to run my tests after migrating to angular 13 I get the following error. The tests were running just fine in angular 12. START: 07 02 2022 16:10:25.

How to import image (.svg, .png ) in a React Component

I am trying to import an image file in one of my react component. I have the project setup with web pack Here's my code for the component import Diamond from