Questions tagged as 'webpack'

0
answers

You may need an appropriate loader to handle this file type

Trying to replicate an example of configuring an environment to work with React and Node , I get an error, implying as if it were not the loader respective to load and transpilar the files. [nodemon] restarting due to chang...
asked by 17.03.2018 / 17:11
1
answer

React.createElement: type is invalid

I'm taking a tutorial to learn React JS , everything was fine, days ago I could run an example, simple, carrying out a recommended basic configuration, plus a few more add-ons that I add to recognize the version of Javascript . T...
asked by 12.02.2018 / 00:40
0
answers

How to upload videos in mp4 format with webpack?

My current webpack.config const webpack = require( 'webpack' ); const ExtractTextPlugin = require( 'extract-text-webpack-plugin' ); const PurifyCSSPlugin = require( 'purifycss-webpack' ); const autoprefixer = require( 'autop...
asked by 10.02.2018 / 12:13
0
answers

angular cli update CRASH

I have updated from version 1.3 of angular cli to 1.6.X and when doing npm install I get a constant error of webpack-subresource-integrity with webpack, updated webpack to version 3.X (I installed it globally and locally ) and the same error kee...
asked by 14.12.2017 / 16:00
0
answers

Import components Vue.js

I am working on a project in .NET with MVC and Vue .js, when I want to use the components I have to declare them in the following way: import Vue from 'vue'; import example from './components/example.vue' import hello from './components/hello...
asked by 23.08.2017 / 19:36
1
answer

Angular 4 - Import JS file with global variables?

I'm working with Angular 4 and my problem is this: At the moment of generating a production package with ng build --prod my dist folder is generated and inside it my assets folder where I included a JS file called "ip.config.js". In this file...
asked by 21.08.2017 / 19:56
0
answers

when creating a file with rails and webpack generates an error when inserting

create a file with rails and webpack: rails new myapp --webpack=vue and create a folder inside rails: app/javascript └── packs ├── app.vue └── hello_vue.js app.vue: <template> <div id="app"> <ul v-for="re...
asked by 26.05.2017 / 00:19
0
answers

Error when running webpack: Can not find module '/webpack/webpack.server.config.js' [closed]

It's the first time I'm trying to use webpack to develop applications with react. In webpack.server.config.js I have the following code: module.exports = { entry: './source/server.js', output: { filename: 'index.js', path: '...
asked by 13.01.2017 / 00:49
1
answer

How to create the production file in react with webpack

I have a simple crud that I did in react, the issue is that I did not use the create-react-app tool, but that I did it from scratch with webpack and babel, etc. My problem is how to create the production folder since with webpack it only does...
asked by 13.09.2018 / 22:13
1
answer

Uncaught TypeError: React.createClass is not a function

I have the code with emac6 so I do not understand why the next error in the browser when launching the app with the code already compiled bundle.js . Uncaught TypeError: React.createClass is not a function webpack.config.js /* eslint...
asked by 08.11.2017 / 19:45