Questions tagged [Webpack] (971)

0
answer

Why when the package is installed Vuelidate when you build the project occurs this error?

Good evening dear experts?. Install the package via npm Vuelidate. And when you run the command npm run dev occurs this error error in ./node_modules/vuelidate/src/index.js Module parse failed: Unexpected token (112:6) You may need an appropriate loader to handle this file type. | const vals = this.validations | return { ...
timmothy56 asked April 4th 20 at 14:19
1
answer

How does your file structure during the development of the project?

Hello, learned how to work with SASS, PUG, acquainted a little with JS, I want to do the project, but to do it as competently from the point of view of its file structure, i.e. that each file was laid down in his place, as is the case in companies where web development has been a group of people, because no such experience ...
ali.Howe asked April 4th 20 at 14:17
0
answer

Weback + Babel: not exported modules?

Why I can't export from a file index.js who is going to dist, in webpage through babel, that is, I take for example in src/index.js write export const { name: 'Mike } when you compile from the bundle and include this file I get an empty object? I understand this is a problem with babel here is my config webpage: const pa...
jayde_Becker37 asked April 4th 20 at 14:10
0
answer

How to use webpack?

Installed yii2, you now need to run webpack configuration file is already there, but gives the following error: E:\gag\api\webpack.config.babel.js:4 import path from 'path'; ^^^^^^ SyntaxError: Cannot use the import statement outside of a module at new Script (vm.js:88:7) at NativeCompileCache._moduleCompile (E:\gag\api\...
Jeromy asked April 4th 20 at 14:05
0
answer

How to set SVG in HTML using Webpack?

Next problem: I cannot load the svg image, if they are inserted into html via img. Example: <img src="img/picture.svg"> All other image loader loads fine. Config webpage: const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-p...
tremayne_Ro asked April 4th 20 at 13:56
2
answers

How to open a typescript module with export to global scope?

Good time of day. Typescript + webpack when you compile a simple class file with this class available for the treatment of globalno. If you add export / import file is executed, but the global class is not available. How to fix? Assuming you can somehow separately to compile ts files without importing, after collecting into...
Francesc asked April 4th 20 at 13:55
1
answer

How to solve the problem of net::ERR_ADDRESS_INVALID?

Hi all. I previously wrote a project using react reacte create app. There is a problem in SSRŅŽ installed environment using the create-react-ssr-app for documentation The result is catch this sort of bug GET 0.0.0.0:3030/static/js/bundle.js net::ERR_ADDRESS_INVALID When you click on error in console displays Seems that web...
Alaina asked April 4th 20 at 13:54
1
answer

In Webpack test?

If you start something with webacom to stir - in any work there will be nothing. This is a rule that. In short the problem is that I want to test using Mocha and Chai options. How do I import into the file test? For example, I have the pow function in the file, written in typescript:module.exports = { pow(num: number, exte...
Ahmed_Christiansen asked April 4th 20 at 13:38
1
answer

How to automatically deplot and collect the frontend?

Good day, please give advice/example. Use both gulp and webpack (the essence does not change) The developers are working on the local machine, then everything merges into networks, tested, and merged in master. There is a demonstration server on linux. In fact, there is on the stand this proishodit next git pull && ...
angeline.Connel asked April 4th 20 at 13:37
1
answer

How to make a plugin for jQuery using Webpack?

I use webpack to build the project and I need to separate the code from my jquery code. So the result is the code from my plugin, and on top I would just connect jquery. Now I removed from providePlugin jquery, and added as an entry point package ['jquery']. On the page I attached both files and webpak writes the error sayi...
Gerard asked April 4th 20 at 13:35