tagged [webpack]

Entry module not found: Error: Can't resolve './src/index.js'

Entry module not found: Error: Can't resolve './src/index.js' I was installing a react startup app and added Webpack, but it says `Can't resolve './src/index.js'`. [](https://i.stack.imgur.com/fhNa8.p...

11 Apr at 13:42

firebase.auth is not a function

firebase.auth is not a function I am using Webpack with firebase and firebase-admin. To install firebase I ran: I am importing firebase using: I also tried: And I tried: As suggested in [web get s

9 Jan at 08:32

Error: Cannot find module 'webpack'

Error: Cannot find module 'webpack' I'm just getting started with webpack and am having difficulty getting the [multiple-entry-points sample](https://github.com/webpack/webpack/tree/master/examples/mu...

9 Apr at 13:17

How to use a jQuery plugin inside Vue

How to use a jQuery plugin inside Vue I'm building a web application inside VueJS but I encounter a problem. I want to use a jQuery extension (cropit to be specific) but I don't know how to instantiat...

21 Dec at 23:12

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

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 ``` imp...

25 Jun at 08:49

Webpack.config how to just copy the index.html to the dist folder

Webpack.config how to just copy the index.html to the dist folder I am trying to automate assets going into /dist. I have the following config.js: ``` module.exports = { context: __dirname + "/lib", ...

20 Jun at 09:12

The create-react-app imports restriction outside of src directory

The create-react-app imports restriction outside of src directory I am using create-react-app. I am trying to call an image from my public folder from a file inside my `src/components`. I am receiving...

How to create multiple page app using react

How to create multiple page app using react I have created a single page web app using react js. I have used `webpack` to create bundle of all components. But now I want to create many other pages. Mo...

31 Jan at 11:31

How to get access to webpack-dev-server from devices in local network?

How to get access to webpack-dev-server from devices in local network? There is some webpack dev server config (it's part of the whole config): ``` config.devServer = { contentBase: './' + (options.p...

"You may need an appropriate loader to handle this file type" with Webpack and Babel

"You may need an appropriate loader to handle this file type" with Webpack and Babel I am trying to use Webpack with Babel to compile ES6 assets, but I am getting the following error message: Here is ...

webpack command not working

webpack command not working I am new to Node Js and Webpack. I tried to start a project with module-loaders. Firstly, I installed nodeJs and NPM and created a new directory called `tutorial`. I used t...

4 Jul at 13:26

Dynamically Add Images React Webpack

Dynamically Add Images React Webpack I've been trying to figure out how to dynamically add images via React and Webpack. I have an image folder under and a component under . I'm using url-loader with...

Error message "error:0308010C:digital envelope routines::unsupported"

Error message "error:0308010C:digital envelope routines::unsupported" I created the default IntelliJ IDEA React project and got this: ``` Error: error:0308010C:digital envelope routines::unsupported ...

20 Nov at 19:58

Preset files are not allowed to export objects

Preset files are not allowed to export objects I have a carousel file in which I want to get `index.js` and build `block.build.js`, so my `webpack.config.js` is: ``` var config = { entry: './index.js...

5 Jun at 13:49

I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely

I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely I am using as an environment, a Cloud9.io ubuntu VM Online IDE and I have reduced by troubleshooting this e...

Support for the experimental syntax 'classProperties' isn't currently enabled

Support for the experimental syntax 'classProperties' isn't currently enabled While I was setting up React within Django project I came across this error ModuleBuildError in Module build failed ...

9 Sep at 16:53

Webpack - webpack-dev-server: command not found

Webpack - webpack-dev-server: command not found I am working on a React webapp using webpack, loosely alongside [this tutorial](http://fredguest.com/2015/03/06/building-a-stateless-rails-api-with-reac...

23 May at 11:47

Refused to load the font 'data:font/woff.....'it violates the following Content Security Policy directive: "default-src 'self'". Note that 'font-src'

Refused to load the font 'data:font/woff.....'it violates the following Content Security Policy directive: "default-src 'self'". Note that 'font-src' My react webApp give this Error in Browser Console...

9 Nov at 09:8

Webpack 4 "size exceeds the recommended limit (244 KiB)"

Webpack 4 "size exceeds the recommended limit (244 KiB)" I have two files which are combined under 600 bytes (.6kb) as below. So how is it that my app.bundle.js is so large (987kb) and more importantl...

18 Mar at 13:24

What does the @ mean inside an import path?

What does the @ mean inside an import path? I'm starting out a new vue.js project so I used the vue-cli tool to scaffold out a new webpack project (i.e. `vue init webpack`). As I was walking through t...

"You may need an additional loader to handle the result of these loaders."

"You may need an additional loader to handle the result of these loaders." I am currently trying to build a State Management Library for ReactJs. But as soon as I implement it into my React project (c...

How to load image files with webpack file-loader

How to load image files with webpack file-loader I am using to manage a project. I want to load images in javascript by webpack `file-loader`. Below is the : ``` const webpack = require('webpack'); co...

30 Jun at 13:48

Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED

Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED I'm having an issue with a Webpack build process that suddenly broke, resulting in the following error... ``` [webpack.Progress] 10% building 0/1 en...

18 Aug at 02:28

Managing jQuery plugin dependency in webpack

Managing jQuery plugin dependency in webpack I'm using Webpack in my application, in which I create two entry points - bundle.js for all my JavaScript files/codes, and vendors.js for all libraries lik...

12 Jun at 20:49

Using "npm run build" fails with "npm ERR! missing script: build"

Using "npm run build" fails with "npm ERR! missing script: build" How can I fix this error, I'm running Windows 10 When i try to on the cmd i get this error Here is the log of the run ``` 0 info it wo...

21 Dec at 22:13