webpack-2

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory - webpack sample Angular 2

拜拜、爱过 提交于 2021-02-18 19:00:48
问题 I am facing an issue in webpack sample while getting webpack build: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory package.json "build": "rimraf dist && node_modules\\.bin\\webpack --config config/webpack.prod.js --progress --profile --bail", 回答1: Every single time when i got the same error i managed to solve the issue using the --max_old_space_size option. My guess would be that either --max_old_space_size=4096 is not enough (just use a higher value) or

NPM: Field 'browser' doesn't contain a valid alias configuration

白昼怎懂夜的黑 提交于 2021-02-10 06:47:42
问题 Executing This: node .\node_modules\webpack\bin\webpack.js --config scripts/webpack.config.js --display-error-details Produces this error. I am just testing this at the moment, so application.ts just has this export class Aureus { constructor() { alert('1'); } } The webpack file looks as follows: const globule = require("globule"); const path = require("path"); const webpack = require("webpack"); const extractTextPlugin = require("extract-text-webpack-plugin"); const config = { }; const

NPM: Field 'browser' doesn't contain a valid alias configuration

烈酒焚心 提交于 2021-02-10 06:46:10
问题 Executing This: node .\node_modules\webpack\bin\webpack.js --config scripts/webpack.config.js --display-error-details Produces this error. I am just testing this at the moment, so application.ts just has this export class Aureus { constructor() { alert('1'); } } The webpack file looks as follows: const globule = require("globule"); const path = require("path"); const webpack = require("webpack"); const extractTextPlugin = require("extract-text-webpack-plugin"); const config = { }; const

Docker build image - glob error { Error: EPERM: operation not permitted, scandir

China☆狼群 提交于 2021-02-09 02:48:47
问题 I'm attempting to build a Docker image of a React+TypeScript+NodeJS application built with Webpack 2.0, but I get the following error > frontend@0.0.1 build / > webpack -p --config configs/webpack.config.ts --env.build --env.sourceMap { isDev: false } glob error { Error: EPERM: operation not permitted, scandir '/proc/1/map_files/55836c87b000-55836c897000' errno: -1, code: 'EPERM', syscall: 'scandir', path: '/proc/1/map_files/55836c87b000-55836c897000' } Error: EPERM: operation not permitted,

async/await __generator is not defined

旧街凉风 提交于 2021-02-08 15:16:44
问题 I am trying to use async/await functions with angular2-webpack-starer and typescript (which now have support for this functions targeting es5), but I'm getting error: This is code inside component: // function inside component async checkSlug(slug: string) { // nothing here } I am using webpack2.2 and typescript 2.1.5. This is my tsconfig: { "compilerOptions": { "target": "es5", "module": "commonjs", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true,

Webpack 3.5.5 debugging in chrome developer tools shows two source files. One under webpack:// and other under webpack-internal://

断了今生、忘了曾经 提交于 2021-02-07 02:46:43
问题 Migrated existing webpack project to use webpack 3.5.5 and its new config. Using express server instead of webpack-dev-server. I had to setup the resolve in webpack as below. const resolve = { extensions : ['.js'], modules : [ 'node_modules', 'src', 'testApplication' ] }; When i debug this webpack application using chrome developer tools I can see the 2 versions of source files. The first one under webpack:// It is exactly matching with the source The second one under webpack-internal:// This

Error using socket.io along with webpack-dev-server

 ̄綄美尐妖づ 提交于 2021-01-02 05:53:23
问题 Quick question guys, I am trying to use webpack-dev-server with socketio, but after trying different things, i figured both of the clients are listening to the same port '3000' and I end up with some kind of handshake error that goes away if I dont use webpack-dev-server on the same port.. here is my server config const PORT = process.env.PORT || 3000; new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true, setup(app) { const server =

Sourcemaps are detected in chrome but original source is not loaded, using webpack-2

牧云@^-^@ 提交于 2020-12-19 19:47:03
问题 When running an application that is built using webpack 2, sourcemaps are detected in chrome but original source is not loaded. I'm using webpack beta21. These files used to be detected automatically, ie when a breakpoint was put in the the output from webpack js file, the source view would jump to the original source input to webpack. But now I am stuck with this screen: config: var path = require("path"); var webpack = require("webpack"); var WebpackBuildNotifierPlugin = require('webpack

Sourcemaps are detected in chrome but original source is not loaded, using webpack-2

百般思念 提交于 2020-12-19 19:40:23
问题 When running an application that is built using webpack 2, sourcemaps are detected in chrome but original source is not loaded. I'm using webpack beta21. These files used to be detected automatically, ie when a breakpoint was put in the the output from webpack js file, the source view would jump to the original source input to webpack. But now I am stuck with this screen: config: var path = require("path"); var webpack = require("webpack"); var WebpackBuildNotifierPlugin = require('webpack

Sourcemaps are detected in chrome but original source is not loaded, using webpack-2

风流意气都作罢 提交于 2020-12-19 19:35:03
问题 When running an application that is built using webpack 2, sourcemaps are detected in chrome but original source is not loaded. I'm using webpack beta21. These files used to be detected automatically, ie when a breakpoint was put in the the output from webpack js file, the source view would jump to the original source input to webpack. But now I am stuck with this screen: config: var path = require("path"); var webpack = require("webpack"); var WebpackBuildNotifierPlugin = require('webpack