skip to Main Content

Html – Image won't load in webpack build

slider.js ... const initialize = (pImages) => { pImages.forEach((image) => { const sliderItem = document.createElement("img"); sliderItem.src = image.src; // this line result in 404 not found in dev tool ... }) } ... index.js ... initialize( { src: "image relative…

VIEW QUESTION

How to hide node.js warning when running Docker?

When I build my image, and run, I kept getting this message ❌❌❌ (node:26) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. (Use node --trace-deprecation ... to show where the warning was created) (node:26) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware'…

VIEW QUESTION

Importing "firebase/app" Module not found: Error: Default condition should be last one

Hi I'm starting with webpack and firebase. Everytime when I do : import { initializeApp } from "firebase/app"; This is the error: File structure: index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>WElcome</title>…

VIEW QUESTION
Back To Top
Search