Category "webpack"

StyleLint - Ignore specific folders and files

I'm using StyleLint with Webpack. My current Webpack configuration is: module.exports.styleLint = (isProd = false) => { const options = { configFile:

How to Prevent Webpack Error after npm Install?

I was working on a project, and everything was going good, until I did npm install. Then, Webpack throws the following error: new ForkCheckerPlugin(),

I18next and Webpack

I'm starting with Webpack and find problem with react i18next hook-useTranslation. // webpack.config.js const path = require('path') const HtmlWebpackPlugin = r

Error while importing a module with optional chaining

Project setup: Vuejs 3 Webpack 4 Babel TS We created the project using vue-cli and add the dependency to the library. We then imported a project (Vue Currency

Webpack Dev Server Config - contentBase not working in latest version

When I upgrade webpack to 4.0.0-beta.3 and run npx webpack serve I get this error: [webpack-cli] Invalid configuration object. Object has been initialized using

Error: Cannot find module 'webpack'

I'm just getting started with webpack and am having difficulty getting the multiple-entry-points sample to build. The webpack.config.js file in the example inc

How to change path for output images in webpack 5?

I have some pictures in folder "src/assets/img/". I would like to keep the relative path to pictures. Example: before -> after Part of my webpack config: con

How to use a git submodule with typescript code in a typescript project

I'm working on a VueJS project that uses different colors and some other things depending on a environment variable. These values are contained in another repos

dynamic import Next.js but still see the module in bundle

I'm setting a component as dynamically callable: index.tsx import dynamic from "next/dynamic"; import { PhoneNumberInputProps } from "./components/PhoneNumberIn

Webpack - Critical dependency: the request of a dependency is an expression

I am getting three warning messages when importing request in a barebone webpack project. A minimal example to reproduce the bug is available on GitHub (run npm

The `/deep/` selector is not working using sass-loader in my VueJS application

In my Vue 2.6.10 webpack application I am trying to add SASS as our team wants to migrate our legacy application from LESS to SCSS. In my package.json I have in

webpack-dev-server - support for POST, PUT, Delete Methods using proxy

I am using webpack-dev-server as a proxy to my original API URL to avoid CORS related issues and dynamically pointing to Dev, UAT, Mock server URL based on the

TypeError: compiler.plugin is not a function

I'm trying to use Tailwind v2 into an old project that uses .tpl files. Not an issue as we're migrating to the world of SPAs. What I'm doing should work regardl

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema

I have this simple helloworld react app created from an online course, however I get this error: Invalid configuration object. Webpack has been initialised

How to forbid replacing process.env variables during compilation in webpack?

Story I'm developing the AWS Lambda functions and compile the code using webpack. I've read some of the articles and it seems that the process.env variables a

React unable to import component -- module not found

I just started with React.js and I am unable to import component. I have this structure as followed by this tutorial (YouTube link) : -- src ----| index.html

How to use Google fonts in React.js?

I had built a website with React.js and webpack. I want to use Google fonts in the webpage, so I put the link in the section. Google Fonts <link href="ht

Webpack 5 Module federation : Unable to Import the Remote app

I have a vanilla JS app and an Angular app. I am trying to link both these apps using module federation, both on my local environment. The following is webpack

Module build failed: UnhandledSchemeError: Reading from "alias:/path" is not handled by plugins (Unhandled scheme)

I am creating a new react app and trying to configure webpack compiler from scratch. The issue happens when running the build command with webpack -c config/web

__webpack_require__ is not defined. Here map bundle doesn't work

I've got an issue inside web worker when tried to use @here/maps-api-for-javascript. I think that happens since the webpack changes the code that runs inside th