1,393 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
30
views
Uncaught TypeError: Cannot assign to read only property 'exports' of object on runtime with webpack4 and babel7
we are using webpack 4 and upgraded from babel 6 to 7, webpack succeeds and builds the output, but seeing below error when app is run,
Uncaught TypeError: Cannot assign to read only property 'exports' ...
0
votes
0
answers
185
views
ESM url scheme error in quasar cli with webpack v4
after creating a new project using the latest v4 of webpack in quasar framework i see this error
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported ...
1
vote
0
answers
472
views
React throwing TypeError: Cannot read property 'now' of undefined
I'm trying to update a legacy project to node 16, the project is a SSR react project with express.
Its using webpack 4..
The error just says: TypeError: Cannot read property 'now' of undefined
I dont ...
0
votes
1
answer
438
views
Hot reload not working on webpack 5.91.0 and webpack-dev-server 5.0.4
After updating webpack from version 4.46.0 to version 5.91.0, hot reload stopped working (not to be confused with live reload).
Previously, the hot loader worked thanks to the library @pmmmwh/react-...
0
votes
1
answer
81
views
Webpack version 4 installation does not work
For my Vue project I need to use webpack, specifically version 4 in consideration with my other dependencies.
However, whenever I try to npm install webpack@4 --save-dev it just enters a loop that ...
0
votes
0
answers
92
views
Vue 2.7 + webpack: all variables inside debugger are undefined / null
We have a Vue 2.7 SPA at my workplace.
Nobody ever configured a dev build for it, nobody ever used a debugger (it's a docker-compose environment).
I'm currently implementing the dev build, and so far ...
-1
votes
1
answer
617
views
After upgrade to node 16, i am facing this error, Module parse failed: Unexpected token (40:35)
Failed to compile.
./node_modules/lib0/logging.js 40:35
Module parse failed: Unexpected token (40:35)
You may need an appropriate loader to handle this file type, currently no loaders are configured ...
1
vote
0
answers
339
views
How to Change Class in HTML with Hash Code and Prefix in Vue 3 Project?
Question:
I'm working on a Vue 3 project where I'm using PostCSS to automatically generate hashed and prefixed class names in my CSS files. However, I'm facing an issue when trying to dynamically ...
0
votes
1
answer
761
views
Why is "dist/main.js" created only with the codes in my index.js file but not more when I use Webpack?
I was watching a Webpack tutorial to understand the concept of it and when I was following the tutorial some didn't result in the same way.
My package.json folder is like this:
{
"name": &...
2
votes
1
answer
1k
views
Using Code Splitting on a Component Library built with Webpack
I have a component library that is published to npm, and installed in other projects.
The library doesn't use dynamic imports. The components are exported in the library as follows:
import {
...
0
votes
1
answer
972
views
Why would Webpack 4 give loader errors for CJS and UMD packages?
I have a few packages that were compiling via tsc alone. This was causing issues when those packages were imported into an app that uses Webpack 4. I decided to try out using vite in my package and ...
0
votes
1
answer
238
views
Why are Webpack 5 externals returning an empty object?
I have a completely functional library package. I upgraded from Webpack 4 to Webpack 5, and all of a sudden my external packages return an empty object. I am at a complete loss of ideas. My config was ...
0
votes
0
answers
265
views
Unable to import faker locale sub package in React app (react-scripts v4)
According to faker docs, it is encouraged to import individual locales using the following syntax (to avoid loading full 5Mb faker bundle):
import { faker } from '@faker-js/faker/locale/de';
However, ...
0
votes
1
answer
642
views
Rails `webpack-dev-server` runs with an error "Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type"
I have rails 6.1.7.5, webpacker 5 gem, and webpack 4. When I run ./bin/webpack-dev-server, it eventually shows this error:
ERROR in ./node_modules/@shopify/draggable/build/esm/shared/utils/closest/...
1
vote
0
answers
69
views
How to get webpack to report typescript errors in HTML templates
I have inherited a project that is stuck on webpack 4 / angular 11 / lerna bootstrap that I am trying to upgrade to webpack 5 / workspaces etc. and it's like a Rubix cube (or Lament Configuration), so ...