javascript typescript webpack vue.js

javascript - No se encontrĂ³ el archivo webpack inject.preload.js



typescript vue.js (1)

Esta pregunta ya tiene una respuesta aquí:

Yo uso Vue / Typscript con el paquete web. Y cada vez que abro la página inject.preload.js arroja un error como GET blob:http://URL/1fbc0606-8477-416b-a45f-50b4d824f2bb 0 () y no sé de dónde viene ni por qué algo se inyectó .

Lo probé en el modo de incógnito de Google Chrome y en Firfox no se produce ningún error.

¿Cómo puedo averiguar por qué ocurre este error?

Salida de consola

paquete.json

{ ... "dependencies": { "axios": "^0.18.0", "email-validator": "^1.1.1", "generate-password": "^1.3.0", "grunt": "^1.0.1", "jquery": "^3.2.1", "lodash": "^4.17.5", "moment": "^2.22.1", "moment-timezone": "^0.5.17", "promise-polyfill": "^7.1.2", "vue-axios": "^2.0.2", "vue-class-component": "^6.2.0", "vue-cloneya": "^1.0.5", "vue-property-decorator": "^6.0.0", "vue-spinner": "^1.0.3", "vuex": "^3.0.1", "vuex-class": "^0.3.0", "invert-color": "^1.2.3", "vuejs-datepicker": "" }, "devDependencies": { "@types/node": "^9.4.7", "css-loader": "^0.28.10", "eslint": "^4.19.1", "eslint-loader": "^2.0.0", "eslint-plugin-html": "^4.0.3", "eslint-plugin-typescript": "^0.11.0", "grunt-contrib-less": "^1.4.1", "grunt-git-describe": "^2.4.2", "grunt-open": "^0.2.3", "grunt-shell": "^2.1.0", "html-loader": "^0.5.5", "i": "^0.3.6", "ts-loader": "^2.3.7", "typescript": "2.7.2", "typescript-eslint-parser": "^14.0.0", "typings": "^2.1.1", "uglifyjs-webpack-plugin": "^1.2.4", "vue": "^2.5.16", "vue-loader": "^14.2.1", "vue-template-compiler": "^2.5.15", "webpack": "^3.11.0", "webpackbar": "^2.6.1" } ... }

webpack.config.js

/* eslint-disable no-undef */ const path = require(''path''); const webpack = require(''webpack''); const UglifyJSPlugin = require(''uglifyjs-webpack-plugin''); module.exports = { entry: ''./templates/src/app.ts'', output: { path: path.resolve(__dirname, ''./dist''), publicPath: ''/dist/'', filename: ''bundle.js'' }, module: { rules: [ { enforce: ''pre'', test: //.(js|ts|vue)$/, include: [ path.resolve(__dirname, ''templates/src'') ], loader: ''eslint-loader'' }, { test: //.vue$/, loader: ''vue-loader'', options: { loaders: { // Since sass-loader (weirdly) has SCSS as its default parse mode, we map // the "scss" and "sass" values for the lang attribute to the right configs here. // other preprocessors should work out of the box, no loader config like this necessary. ''scss'': ''vue-style-loader!css-loader!sass-loader'', ''sass'': ''vue-style-loader!css-loader!sass-loader?indentedSyntax'', } // other vue-loader options go here } }, { test: //.tsx?$/, loader: ''ts-loader'', exclude: /node_modules/, options: { appendTsSuffixTo: [//.vue$/] } }, { test: //.(png|jpg|gif|svg)$/, loader: ''file-loader'', options: { name: ''[name].[ext]?[hash]'' } }, { test: //.html$/, loader: ''html-loader'' }, { test: //.css$/, use: [ ''vue-style-loader'', ''css-loader'' ] } ] }, resolve: { extensions: [''.ts'', ''.js'', ''.vue'', ''.json'', ''.html''], alias: { ''vue$'': ''vue/dist/vue.esm.js'' } }, devServer: { historyApiFallback: true, noInfo: true }, performance: { hints: false }, devtool: ''#eval-source-map'' }; if (process.env.NODE_ENV === ''production'') { module.exports.devtool = ''#source-map''; // http://vue-loader.vuejs.org/en/workflow/production.html module.exports.plugins = (module.exports.plugins || []).concat([ new webpack.DefinePlugin({ ''process.env'': { NODE_ENV: ''"production"'' } }), new UglifyJSPlugin({ sourceMap: true }), new webpack.LoaderOptionsPlugin({ minimize: true }) ]); }


El error se produce debido a la extensión AdBlock. Para verificar, puedes deshabilitar completamente la extensión en chrome: // extensions / url.