webpack4.0中引入app.vue出现报错

webpack4.0中引入app.vue出现报错

我正在学vue.js实战,但是这本书事两年前写的,书中的vue配置有些已经不能用了,
我在配置完webpack.config.js后创建了个app.vue,然后就报错了,百度过,没找到合适的答案,请问各位大佬有遇到过吗。求解答,谢谢,下面是报错截图,以及webpack.config.js的截图,谢谢
图片说明
图片说明

webpack.config.js:
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

var config = {
entry : {
main : './main'
},
output : {
path : path.join(__dirname, './dist'),
publicPath : '/dist/',
filename : 'main.js'
},
module: {
rules: [
{
test: /.vue$/,
loader : 'vue-loader',
options : {
loaders : {
css : ExtractTextPlugin.extract({
use : 'css-loader',
fallback : 'vue-style-loader'
})
}
}
},
{
test : /.js$/,
loader : 'babel-loader',
exclude : /node_modules/
},
{
test : /.css$/,
use : ExtractTextPlugin.extract({
use : 'css-loader',
fallback : 'style-loader'
})
}
]
},
plugins : [
//重命名提取后的css文件
new ExtractTextPlugin("main.css")
]
};

module.exports = config;

package.json:

{
"name": "vuedemo04",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack-dev-server --host 192.168.0.114 --port 8888 --open --config webpack.config.js"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/runtime": "^7.6.0",
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-runtime": "^6.26.0",
"css-loader": "^3.2.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"style-loader": "^1.0.0",
"vue-hot-reload-api": "^2.3.3",
"vue-loader": "^15.7.1",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.39.3",
"webpack-cli": "^3.3.8",
"webpack-dev-server": "^3.8.0"
},
"dependencies": {
"vue": "^2.6.10"
}
}

main.js:

import Vue from 'vue';
import App from './app.vue';

new Vue({
el:'#app',
render : h => h(App)
});

app.vue:
图片说明

style.css:
图片说明

index.html:
图片说明

vue项目结构:

2个回答

webpack配置里加个配置

const VueLoaderPlugin = reeuire("vue-loader/lib/plugin);

plugins: [
    new VueLoaderPlugin()
]
qq_43205778
qq_43205778 感谢!
2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
webpack4.x中mini-css-webpack-plugin的使用
webapck4.x中废弃了extract-text-webpack-plugin,说建议使用mini-css-webpack-plugin,当我在使用这个的时候发现这里面不能单独修改css文件的中引用图片的publicPath属性,然后打包后css文件中的url指向就出现了问题,我想知道webpack4.x中如何解决这一问题
在终端执行webpack调用webpack.config.js 时,报错
### 在终端执行webpack调用webpack.config.js 时,报错,求大佬解决 ### 这是我 webpack.config.js 的代码 ``` JavaScript const path = require('path') module.exports = { entry: './src/main.js', output: { path: path.join(__dirname, './dist'), filename: 'bundle.js' }, mode: 'development' } ``` ### 这是我 package.json 的内容 ``` { "name": "webpack-b", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "jquery": "^3.3.1", "webpack": "^4.20.2", "webpack-cli": "^3.1.2" } } ``` 这是目录结构 ![图片说明](https://img-ask.csdn.net/upload/201810/09/1539066890_92808.png) 这是我报错的信息 ![图片说明](https://img-ask.csdn.net/upload/201810/09/1539066961_249766.png) #### 但是如果我在package.json的 script 中加上 ``` javascript "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "webpack --mode development ./src/main.js --output ./dist/bundle.js" }, ```` 然后在终端执行 npm run dev,却是成功的,求解 ![图片说明](https://img-ask.csdn.net/upload/201810/09/1539067218_230104.png)
webpack vue.js 配置为什么会出错
为什么webpack 导入vue会出错.![图片说明](https://img-ask.csdn.net/upload/201808/07/1533614196_548680.png)![图片说明](https://img-ask.csdn.net/upload/201808/07/1533614220_224976.png)
自己用webpack构建vue项目报错,求帮助万分感谢
神烦怎么也解决不了问题,用localhost能访问到的是目录 用node:{ fs: 'empty', net: 'empty', tls: 'empty', child_process: 'empty' }能减少几个报错信息 以下是我的配置 ``` const path = require('path'); const HTMLPlugin = require('html-webpack-plugin'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); const webpack = require('webpack'); const isDev = process.env.NODE_ENV === 'development'; //package.json设置的对象全部存在process.env里面 const config = { target: 'web', entry: path.join(__dirname, 'src/index.js'),//设置入口,__dirname代表本文件所在的地址,也就是根目录 output: { filename: 'bundle.js', //打包的名字 path: path.join(__dirname, 'dist') //打包路径 }, plugins: [ // make sure to include the plugin for the magic new VueLoaderPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: isDev ? '"development"' : '"production"' //调用process.env.NODE_ENV 可以获取 环境 } }), new HTMLPlugin() ], module: { rules: [ { test: /\.vue$/, loader: 'vue-loader' }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] }, { test: /\.styl$/, use: [ 'style-loader', 'css-loader', 'stylus-loader' ] }, { test: /\.(jpg|gif|jpeg|png|svg)$/, use: [{ loader: 'url-loader', options: { limit: 1024,//可以帮小于1024的图片转换base-64代码直接写在js里面,减少http请求 name: '[name].[ext]' //重命名 name图片原来的名字 ext文件扩展名 } }] } ] } }; if (isDev) { config.devServer = { port: '8200', host: '0.0.0.0', overlay: { errors: true, } } } module.exports = config; ``` 下面是报错信息 ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testbinary.js Module not found: Error: Can't resolve 'child_process' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testbinary.js 10:9-33 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/compile.js Module not found: Error: Can't resolve 'child_process' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib\util' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/compile.js 9:9-33 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/osenv/osenv.js Module not found: Error: Can't resolve 'child_process' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\osenv' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/osenv/osenv.js 3:11-35 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/nopt/lib/nopt.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_worker-farm@1.6.0@worker-farm/lib/fork.js Module not found: Error: Can't resolve 'child_process' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_worker-farm@1.6.0@worker-farm\lib' @ ./node_modules/_worker-farm@1.6.0@worker-farm/lib/fork.js 3:21-45 @ ./node_modules/_worker-farm@1.6.0@worker-farm/lib/farm.js @ ./node_modules/_worker-farm@1.6.0@worker-farm/lib/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_cacache@10.0.4@cacache/get.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_cacache@10.0.4@cacache' @ ./node_modules/_cacache@10.0.4@cacache/get.js 5:11-24 @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_chokidar@2.0.4@chokidar/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_chokidar@2.0.4@chokidar' @ ./node_modules/_chokidar@2.0.4@chokidar/index.js 3:9-22 @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_chokidar@2.0.4@chokidar\lib' @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js 3:9-22 @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_chokidar@2.0.4@chokidar/lib/nodefs-handler.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_chokidar@2.0.4@chokidar\lib' @ ./node_modules/_chokidar@2.0.4@chokidar/lib/nodefs-handler.js 3:9-22 @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_chownr@1.1.1@chownr/chownr.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_chownr@1.1.1@chownr' @ ./node_modules/_chownr@1.1.1@chownr/chownr.js 2:11-24 @ ./node_modules/_cacache@10.0.4@cacache/lib/util/fix-owner.js @ ./node_modules/_cacache@10.0.4@cacache/lib/util/tmp.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_copy-concurrently@1.0.5@copy-concurrently/copy.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_copy-concurrently@1.0.5@copy-concurrently' @ ./node_modules/_copy-concurrently@1.0.5@copy-concurrently/copy.js 8:13-26 @ ./node_modules/_move-concurrently@1.0.1@move-concurrently/move.js @ ./node_modules/_cacache@10.0.4@cacache/lib/util/move-file.js @ ./node_modules/_cacache@10.0.4@cacache/lib/content/write.js @ ./node_modules/_cacache@10.0.4@cacache/put.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fs.realpath@1.0.0@fs.realpath/old.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fs.realpath@1.0.0@fs.realpath' @ ./node_modules/_fs.realpath@1.0.0@fs.realpath/old.js 24:9-22 @ ./node_modules/_fs.realpath@1.0.0@fs.realpath/index.js @ ./node_modules/_glob@7.1.3@glob/glob.js @ ./node_modules/_cacache@10.0.4@cacache/lib/verify.js @ ./node_modules/_cacache@10.0.4@cacache/verify.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fs.realpath@1.0.0@fs.realpath/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fs.realpath@1.0.0@fs.realpath' @ ./node_modules/_fs.realpath@1.0.0@fs.realpath/index.js 8:9-22 @ ./node_modules/_glob@7.1.3@glob/glob.js @ ./node_modules/_cacache@10.0.4@cacache/lib/verify.js @ ./node_modules/_cacache@10.0.4@cacache/verify.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents' @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js 17:9-22 @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/chownr/chownr.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\chownr' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/chownr/chownr.js 4:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/mkdir.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/unpack.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/detect-libc/lib/detect-libc.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\detect-libc\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/detect-libc/lib/detect-libc.js 5:18-31 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/versioning.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs-minipass/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\fs-minipass' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs-minipass/index.js 4:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/create.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs.realpath/old.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\fs.realpath' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs.realpath/old.js 24:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs.realpath/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/glob.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/napi.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs.realpath/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\fs.realpath' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/fs.realpath/index.js 8:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/glob.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/napi.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/glob.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\glob' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/glob.js 43:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/napi.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/sync.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\glob' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/sync.js 4:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/glob/glob.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/napi.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/ignore-walk/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\ignore-walk' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/ignore-walk/index.js 3:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/npm-packlist/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/mkdirp/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\mkdirp' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/mkdirp/index.js 2:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testpackage.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/needle/lib/multipart.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\needle\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/needle/lib/multipart.js 1:15-28 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/needle/lib/needle.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/install.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/needle/lib/needle.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\needle\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/needle/lib/needle.js 8:18-31 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/install.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testbinary.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testbinary.js 7:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testpackage.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/testpackage.js 7:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js 13:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/pre-binding.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/pre-binding.js 5:17-30 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/clean.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/clean.js 7:9-22 9:13-26 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/unpublish.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/unpublish.js 7:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\node-pre-gyp\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js 7:9-22 12:12-25 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/npm-bundled/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\npm-bundled' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/npm-bundled/index.js 10:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/npm-packlist/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\rimraf' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/rimraf/rimraf.js 6:9-22 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/util/napi.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/replace.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/replace.js 8:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/mkdir.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/mkdir.js 8:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/unpack.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/write-entry.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/write-entry.js 7:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/unpack.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/unpack.js 6:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/pack.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/pack.js 56:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/extract.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/extract.js 6:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/list.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/list.js 11:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/create.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_fsevents@1.2.4@fsevents\node_modules\tar\lib' @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/lib/create.js 7:11-24 @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/tar/index.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/package.js @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib sync ^\.\/.*$ @ ./node_modules/_fsevents@1.2.4@fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js @ ./node_modules/_fsevents@1.2.4@fsevents/fsevents.js @ ./node_modules/_chokidar@2.0.4@chokidar/lib/fsevents-handler.js @ ./node_modules/_chokidar@2.0.4@chokidar/index.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/DirectoryWatcher.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watcherManager.js @ ./node_modules/_watchpack@1.6.0@watchpack/lib/watchpack.js @ (webpack)/lib/node/NodeWatchFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_glob@7.1.3@glob/sync.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_glob@7.1.3@glob' @ ./node_modules/_glob@7.1.3@glob/sync.js 4:9-22 @ ./node_modules/_glob@7.1.3@glob/glob.js @ ./node_modules/_cacache@10.0.4@cacache/lib/verify.js @ ./node_modules/_cacache@10.0.4@cacache/verify.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_glob@7.1.3@glob/glob.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_glob@7.1.3@glob' @ ./node_modules/_glob@7.1.3@glob/glob.js 43:9-22 @ ./node_modules/_cacache@10.0.4@cacache/lib/verify.js @ ./node_modules/_cacache@10.0.4@cacache/verify.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_graceful-fs@4.1.11@graceful-fs/graceful-fs.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_graceful-fs@4.1.11@graceful-fs' @ ./node_modules/_graceful-fs@4.1.11@graceful-fs/graceful-fs.js 1:9-22 @ ./node_modules/_enhanced-resolve@4.1.0@enhanced-resolve/lib/NodeJsInputFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_graceful-fs@4.1.11@graceful-fs/fs.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_graceful-fs@4.1.11@graceful-fs' @ ./node_modules/_graceful-fs@4.1.11@graceful-fs/fs.js 3:9-22 @ ./node_modules/_graceful-fs@4.1.11@graceful-fs/graceful-fs.js @ ./node_modules/_enhanced-resolve@4.1.0@enhanced-resolve/lib/NodeJsInputFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_loader-runner@2.3.1@loader-runner/lib/LoaderRunner.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_loader-runner@2.3.1@loader-runner\lib' @ ./node_modules/_loader-runner@2.3.1@loader-runner/lib/LoaderRunner.js 5:9-22 @ (webpack)/lib/NormalModule.js @ (webpack)/lib/AutomaticPrefetchPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_make-dir@1.3.0@make-dir/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_make-dir@1.3.0@make-dir' @ ./node_modules/_make-dir@1.3.0@make-dir/index.js 2:11-24 @ ./node_modules/_find-cache-dir@1.0.0@find-cache-dir/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_mkdirp@0.5.1@mkdirp/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_mkdirp@0.5.1@mkdirp' @ ./node_modules/_mkdirp@0.5.1@mkdirp/index.js 2:9-22 @ (webpack)/lib/node/NodeOutputFileSystem.js @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_move-concurrently@1.0.1@move-concurrently/move.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_move-concurrently@1.0.1@move-concurrently' @ ./node_modules/_move-concurrently@1.0.1@move-concurrently/move.js 4:13-26 @ ./node_modules/_cacache@10.0.4@cacache/lib/util/move-file.js @ ./node_modules/_cacache@10.0.4@cacache/lib/content/write.js @ ./node_modules/_cacache@10.0.4@cacache/put.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_path-exists@3.0.0@path-exists/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_path-exists@3.0.0@path-exists' @ ./node_modules/_path-exists@3.0.0@path-exists/index.js 2:11-24 @ ./node_modules/_locate-path@2.0.0@locate-path/index.js @ ./node_modules/_find-up@2.1.0@find-up/index.js @ ./node_modules/_pkg-dir@2.0.0@pkg-dir/index.js @ ./node_modules/_find-cache-dir@1.0.0@find-cache-dir/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_rimraf@2.6.2@rimraf/rimraf.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_rimraf@2.6.2@rimraf' @ ./node_modules/_rimraf@2.6.2@rimraf/rimraf.js 6:9-22 @ ./node_modules/_cacache@10.0.4@cacache/lib/util/tmp.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_schema-utils@0.4.7@schema-utils/src/validateOptions.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_schema-utils@0.4.7@schema-utils\src' @ ./node_modules/_schema-utils@0.4.7@schema-utils/src/validateOptions.js 8:11-24 @ ./node_modules/_schema-utils@0.4.7@schema-utils/src/index.js @ (webpack)/lib/BannerPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_snapdragon@0.8.2@snapdragon/lib/source-maps.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_snapdragon@0.8.2@snapdragon\lib' @ ./node_modules/_snapdragon@0.8.2@snapdragon/lib/source-maps.js 3:9-22 @ ./node_modules/_snapdragon@0.8.2@snapdragon/lib/compiler.js @ ./node_modules/_snapdragon@0.8.2@snapdragon/index.js @ ./node_modules/_micromatch@3.1.10@micromatch/lib/utils.js @ ./node_modules/_micromatch@3.1.10@micromatch/index.js @ (webpack)/lib/optimize/SideEffectsFlagPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_uglify-es@3.3.9@uglify-es/tools/node.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_uglify-es@3.3.9@uglify-es\tools' @ ./node_modules/_uglify-es@3.3.9@uglify-es/tools/node.js 1:9-22 @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/minify.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in (webpack)/lib/debug/ProfilingPlugin.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_webpack@4.20.2@webpack\lib\debug' @ (webpack)/lib/debug/ProfilingPlugin.js 1:11-24 @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in (webpack)/lib/node/NodeMainTemplateAsync.runtime.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_webpack@4.20.2@webpack\lib\node' @ (webpack)/lib/node/NodeMainTemplateAsync.runtime.js 10:2-15 28:3-16 @ (webpack)/lib/node/NodeMainTemplatePlugin.js @ (webpack)/lib/node/NodeTemplatePlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in (webpack)/lib/node/NodeOutputFileSystem.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_webpack@4.20.2@webpack\lib\node' @ (webpack)/lib/node/NodeOutputFileSystem.js 7:11-24 @ (webpack)/lib/node/NodeEnvironmentPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in ./node_modules/_y18n@4.0.0@y18n/index.js Module not found: Error: Can't resolve 'fs' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_y18n@4.0.0@y18n' @ ./node_modules/_y18n@4.0.0@y18n/index.js 1:9-22 @ ./node_modules/_cacache@10.0.4@cacache/lib/util/y.js @ ./node_modules/_cacache@10.0.4@cacache/locales/en.js @ ./node_modules/_cacache@10.0.4@cacache/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/uglify/Runner.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/index.js @ ./node_modules/_uglifyjs-webpack-plugin@1.3.0@uglifyjs-webpack-plugin/dist/cjs.js @ (webpack)/lib/WebpackOptionsDefaulter.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in (webpack)/lib/NormalModule.js Module not found: Error: Can't resolve 'module' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_webpack@4.20.2@webpack\lib' @ (webpack)/lib/NormalModule.js 7:21-38 @ (webpack)/lib/AutomaticPrefetchPlugin.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack ERROR in (webpack)/lib/node/NodeTargetPlugin.js Module not found: Error: Can't resolve 'module' in 'D:\java\JetBrains\module\vue-app\vue-todo\node_modules\_webpack@4.20.2@webpack\lib\node' @ (webpack)/lib/node/NodeTargetPlugin.js 11:1-18 @ (webpack)/lib/WebpackOptionsApply.js @ (webpack)/lib/webpack.js @ multi ./node_modules/_webpack-dev-server@3.1.9@webpack-dev-server/client?http://0.0.0.0:8200 webpack Child html-webpack-plugin for "index.html": 1 asset Entrypoint undefined = index.html [0] ./node_modules/_html-webpack-plugin@3.2.0@html-webpack-plugin/lib/loader.js!./node_modules/_html-webpack-plugin@3.2.0@html-webpack-plugin/default_index.ejs 392 bytes {0} [b uilt] [1] ./node_modules/_lodash@4.17.11@lodash/lodash.js 527 KiB {0} [built] [2] (webpack)/buildin/global.js 509 bytes {0} [built] [3] (webpack)/buildin/module.js 519 bytes {0} [built] i 「wdm」: Failed to compile.
npm run dev啟動項目時報錯 `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
uotation@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the quotation@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ``` //webpack.dev.conf.js 'use strict' const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const path = require('path') const baseWebpackConfig = require('./webpack.base.conf') const CopyWebpackPlugin = require('copy-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') const portfinder = require('portfinder') const HOST = process.env.HOST const PORT = process.env.PORT && Number(process.env.PORT) const devWebpackConfig = merge(baseWebpackConfig, { module: { rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) }, // cheap-module-eval-source-map is faster for development devtool: config.dev.devtool, // these devServer options should be customized in /config/index.js devServer: { clientLogLevel: 'warning', historyApiFallback: { rewrites: [ { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, ], }, hot: true, contentBase: false, // since we use CopyWebpackPlugin. compress: true, host: HOST || config.dev.host, port: PORT || config.dev.port, open: config.dev.autoOpenBrowser, overlay: config.dev.errorOverlay ? { warnings: false, errors: true } : false, publicPath: config.dev.assetsPublicPath, proxy: config.dev.proxyTable, quiet: true, // necessary for FriendlyErrorsPlugin watchOptions: { poll: config.dev.poll, } }, plugins: [ new webpack.DefinePlugin({ 'process.env': require('../config/dev.env') }), new webpack.HotModuleReplacementPlugin(), new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. new webpack.NoEmitOnErrorsPlugin(), // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', inject: true }), // copy custom static assets new CopyWebpackPlugin([ { from: path.resolve(__dirname, '../static'), to: config.dev.assetsSubDirectory, ignore: ['.*'] } ]) ] }) module.exports = new Promise((resolve, reject) => { portfinder.basePort = process.env.PORT || config.dev.port portfinder.getPort((err, port) => { if (err) { reject(err) } else { // publish the new Port, necessary for e2e tests process.env.PORT = port // add port to devServer config devWebpackConfig.devServer.port = port // Add FriendlyErrorsPlugin devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ compilationSuccessInfo: { messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], }, onErrors: config.dev.notifyOnErrors ? utils.createNotifierCallback() : undefined })) resolve(devWebpackConfig) } }) }) ``` ``` //webpack.base.conf.js 'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') function resolve (dir) { return path.join(__dirname, '..', dir) } module.exports = { context: path.resolve(__dirname, '../'), entry: { app: './src/main.js' }, output: { path: config.build.assetsRoot, filename: '[name].js', publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath }, resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), } }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, { test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] }, { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('img/[name].[hash:7].[ext]') } }, { test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('media/[name].[hash:7].[ext]') } }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') } } ] }, node: { // prevent webpack from injecting useless setImmediate polyfill because Vue // source contains it (although only uses it if it's native). setImmediate: false, // prevent webpack from injecting mocks to Node native modules // that does not make sense for the client dgram: 'empty', fs: 'empty', net: 'empty', tls: 'empty', child_process: 'empty' } } ```
在vue项目中,在入口主文件index.js中引入less样式文件报错
引入方式如下:![图片说明](https://img-ask.csdn.net/upload/201804/26/1524749855_572114.png) 报错说明如下:![图片说明](https://img-ask.csdn.net/upload/201804/26/1524750046_435848.png) 参考了其他问题的回答,说是需要在build文件下的webpack.base.conf.js中加上 ``` { test: /\.less$/, loader: "style-loader!css-loader!less-loader" }, ``` 可是并没有解决,一样报错,求大神帮忙解决,非常感谢!
运行Vue项目时,报错npm ERR! errno 1 npm ERR! Failed at the single@1.0.0 dev script.
运行Vue项目时,报错,不清楚是哪里出了问题 ``` Error: Cannot find module 'webpack-cli/bin/config-yargs' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (E:\HBuilderProjects\Vue\single\node_modules\_webpack-dev-server@3.7.1@webpack-dev-server\bin\webpack-dev-server.js:60:1) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! single@1.0.0 dev: `webpack-dev-server --open --hot --port 8020` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the single@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\asus\AppData\Roaming\npm-cache\_logs\2019-06-15T16_43_01_654Z-debug.log ``` ``` ``` 这个是package.json文件 ``` { "name": "single", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "dev": "webpack-dev-server --open --hot --port 8020" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "vue": "^2.6.10" }, "devDependencies": { "babel-core": "^6.26.3", "babel-loader": "^8.0.6", "babel-preset-env": "^1.7.0", "css-loader": "^3.0.0", "file-loader": "^4.0.0", "vue-html-loader": "^1.2.4", "vue-loader": "^15.7.0", "vue-style-loader": "^4.1.2", "vue-template-compiler": "^2.6.10", "webpack": "^4.34.0", "webpack-dev-server": "^3.7.1" } } ```
webpack4 + vue2 编译.vue文件失败错误
# 提示如下的错误![图片说明](https://img-ask.csdn.net/upload/201805/04/1525424808_11411.png) 这是我有的所有的依赖 ![图片说明](https://img-ask.csdn.net/upload/201805/04/1525424879_290303.png) webpack的配置文件 ![图片说明](https://img-ask.csdn.net/upload/201805/04/1525424904_596031.png) 这个只是按照网上一个demo写的,不知道为什么编译vue的时候报错,PS:菜鸟一只,头回使用webpack 和 vue 我是想把vue文件编译到某某js中,所以和服务器上的dev不太一样 不知道为什么就是不好用
Vue2.0使用ElementUI的组件报错
问题截图: ![图片说明](https://img-ask.csdn.net/upload/201903/29/1553828313_461442.png) 问题描述: 编译工具webstorm,使用npm命令 dev运行项目报错。 搭建过程: 按照官方教程执行了 1.使用命令安装element组件 ``` npm i element-ui -S ``` 2.安装babel组件 ``` npm install babel-plugin-component -S ``` 3.main.js引用 ``` import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.config.productionTip = false Vue.use(ElementUI); ``` 4.页面中使用element组件 ``` <template> <div>2</div> <el-row> <el-button>默认按钮</el-button> <el-button type="primary">主要按钮</el-button> <el-button type="success">成功按钮</el-button> <el-button type="info">信息按钮</el-button> <el-button type="warning">警告按钮</el-button> <el-button type="danger">危险按钮</el-button> </el-row> </template> ``` .babelrc文件修改后报错,es2015,安装后无法使用,还原成系统默认配置。 以下为相关文件的具体内容: package.json ``` { "name": "vuetest3", "version": "1.0.0", "description": "A Vue.js project", "author": "811204266@qq.com <123456>", "private": true, "scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "start": "npm run dev", "unit": "jest --config test/unit/jest.conf.js --coverage", "e2e": "node test/e2e/runner.js", "test": "npm run unit && npm run e2e", "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs", "build": "node build/build.js" }, "dependencies": { "axios": "^0.18.0", "babel-polyfill": "^6.26.0", "vue": "^2.5.2", "vue-router": "^3.0.1" }, "devDependencies": { "autoprefixer": "^7.1.2", "babel-core": "^6.22.1", "babel-eslint": "^8.2.1", "babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-jest": "^21.0.2", "babel-loader": "^7.1.1", "babel-plugin-component": "^1.1.1", "babel-plugin-dynamic-import-node": "^1.2.0", "babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", "babel-plugin-transform-runtime": "^6.22.0", "babel-plugin-transform-vue-jsx": "^3.5.0", "babel-preset-env": "^1.3.2", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-2": "^6.22.0", "babel-register": "^6.22.0", "chalk": "^2.0.1", "chromedriver": "^2.27.2", "copy-webpack-plugin": "^4.0.1", "cross-spawn": "^5.0.1", "css-loader": "^0.28.0", "eslint": "^4.15.0", "eslint-config-standard": "^10.2.1", "eslint-friendly-formatter": "^3.0.0", "eslint-loader": "^1.7.1", "eslint-plugin-import": "^2.7.0", "eslint-plugin-node": "^5.2.0", "eslint-plugin-promise": "^3.4.0", "eslint-plugin-standard": "^3.0.1", "eslint-plugin-vue": "^4.0.0", "extract-text-webpack-plugin": "^3.0.0", "file-loader": "^1.1.4", "friendly-errors-webpack-plugin": "^1.6.1", "html-webpack-plugin": "^2.30.1", "jest": "^22.0.4", "jest-serializer-vue": "^0.3.0", "nightwatch": "^0.9.12", "node-notifier": "^5.1.2", "optimize-css-assets-webpack-plugin": "^3.2.0", "ora": "^1.2.0", "portfinder": "^1.0.13", "postcss-import": "^11.0.0", "postcss-loader": "^2.0.8", "postcss-url": "^7.2.1", "rimraf": "^2.6.0", "selenium-server": "^3.0.1", "semver": "^5.3.0", "shelljs": "^0.7.6", "uglifyjs-webpack-plugin": "^1.1.1", "url-loader": "^0.5.8", "vue-jest": "^1.0.2", "vue-loader": "^13.3.0", "vue-style-loader": "^3.0.1", "vue-template-compiler": "^2.5.2", "webpack": "^3.6.0", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1", "webpack-merge": "^4.1.0" }, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] } ``` 页面文件home.vue ``` <template> <div>2</div> <el-row> <el-button>默认按钮</el-button> <el-button type="primary">主要按钮</el-button> <el-button type="success">成功按钮</el-button> <el-button type="info">信息按钮</el-button> <el-button type="warning">警告按钮</el-button> <el-button type="danger">危险按钮</el-button> </el-row> </template> <script> export default { name: 'home', data () { return { msg: 'Welcome to Your Vue.js App' } } } </script> <style scoped> </style> ``` main.js ``` // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.config.productionTip = false Vue.use(ElementUI); /* eslint-disable no-new */ new Vue({ el: '#app', router, components: { App }, template: '<App/>' }) ``` router/index.js ``` import Vue from 'vue' import Router from 'vue-router' import Home from '@/page/Home' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'Home', component: Home } ] }) ```
vue-loader安装后在.vue里的<style></style>里面写样式就报错?
提问:请问下,vue-loader也安装了为何在.vue的style标签了 还是不能写样式呢?webpack4,使用webpack-dev-server命令打包时就报错.应该如何解决? 我已经尝试卸载vue-loader重新安装,删除node-modules重新跑环境,但并没有解决掉.难到是某个加载器的版本的问题吗? main.js ``` import Vue from 'vue'; import app from './App.vue'; import { Header } from 'mint-ui'; Vue.component(Header.name, Header); var vm=new Vue({ el:'#app', render:c=>c(app) }); ``` App.vue ``` <template> <div class="box"> <!--header--> <mt-header fixed title="固定在顶部"></mt-header> <!--body--> <!--foot--> <h1>这是 App 组件</h1> </div> </template> <script> </script> <style lang="sass" scoped> .box{ padding-top:40px; } </style> ``` package.json ``` "devDependencies": { "babel-core": "^6.26.0", "babel-loader": "^7.1.2", "babel-plugin-component": "^0.10.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-0": "^6.24.1", "css-loader": "^0.28.7", "file-loader": "^1.1.5", "html-webpack-plugin": "^2.30.1", "less": "^2.7.3", "less-loader": "^4.0.5", "node-sass": "^4.5.3", "sass-loader": "^6.0.6", "style-loader": "^0.19.0", "url-loader": "^0.6.2", "vue-loader": "^13.3.0", "vue-template-compiler": "^2.5.2", "webpack": "^3.8.1", "webpack-dev-server": "^2.9.3" }, "dependencies": { "bootstrap": "^3.3.7", "mint-ui": "^2.2.9", "vue": "^2.5.2", "vue-router": "^3.0.1" } } ``` 错误提示: ``` ERROR in ./node_modules/css-loader!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-7ba5bd90","scoped": true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?indentedSyntax!./node_modules/vue-loader/lib/selector .js?type=styles&index=0!./src/App.vue Module build failed: .box{ ^ Invalid CSS after ".box{": expected "}", was "{" in F:\vuetest\day7\src\App.vue (line 19, column 6) @ ./node_modules/vue-style-loader!./node_modules/css-loader!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":" data-v-7ba5bd90","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?indentedSyntax!./node_modul es/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-331 13:3-17:5 14:22-339 @ ./src/App.vue @ ./src/main.js @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/main.js
vue引入jq和bootstrap报错
![图片说明](https://img-ask.csdn.net/upload/201705/24/1495609655_762039.jpg) jq是通过cnpm直接安装的,packjson里有"jQuery": "^1.7.4", 我在webpack.base.conf.js中写了如下: var webpack=require('webpack'); module.exports中写了 plugins:[ new webpack.optimize.CommonsChunkPlugin('common.js'), new webpack.ProvidePlugin({ $:"jquery", jQuery:"jquery", "windows.jQuery":"jquery" }) ] 和 resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), 'assets':path.resolve(__dirname,'../src/assets'), 'jquery': 'jquery' } }, main.js中引入了 import $ from 'jquery'; import './assets/css/bootstrap.min.css'; import './assets/css/bootstrap-theme.min.css'; import './assets/js/bootstrap.min'; bootstrap文件 也放在了assets中的css和js中。。但是还是报错。。 求大神解惑
webpack 生成XXX.bundle.js 报错
各位码神你们好,我学习webpack打包时遇到一个问题, 搞了很久都没解决。在此希望你们能动动手指帮我解决一下。 报错内容如下: ERROR in multi ./hello.js hello.bundle.js Module not found: Error: Can't resolve 'hello.bundle.js' in 'D:\GitHub\webpack-test' @ multi ./hello.js hello.bundle.js 报错截图: ![图片说明](https://img-ask.csdn.net/upload/201805/18/1526579903_371261.jpg)
react+webpack中使用wowjs和animate.css后报错window is not defined
1.首先使用npm安装wowjs npm install wowjs --save-dev 2.在js中引用 import 'animate.css' import {WOW} from 'wowjs'; new WOW({live: false}).init(); 但是报错window is not defined 需要在webpack.config.js中配置吗?如何配置呢? 我在webpack.config.js这样配置了。不可以 ![图片说明](https://img-ask.csdn.net/upload/201809/29/1538214241_538880.jpg)
npm install报错,webpack报错,npm install vue-cli报错
npm install 报错 ![图片说明](https://img-ask.csdn.net/upload/201709/08/1504860429_522083.png) npm install webpack --save-dev 报错 ![图片说明](https://img-ask.csdn.net/upload/201709/08/1504860470_200667.png) npm install vue-cli报错 ![图片说明](https://img-ask.csdn.net/upload/201709/08/1504860495_849862.png) 但是npm run dev 可以正常跑起来 ![图片说明](https://img-ask.csdn.net/upload/201709/08/1504860521_518161.png) 页面的显示也正常 我的提问的两个原帖链接: http://blog.csdn.net/aeoliancrazy/article/details/77863343 http://blog.csdn.net/aeoliancrazy/article/details/77881396 我不是刷点击量,只是这个蛋疼的提问框无法预览 不要从网上别人的直接复制过来回答我,在我的上述2个链接中,已经试了6种方法了,包括6中的混用 回答的亲么,拿出点诚意,我查了两天,网上相同的问题,帖子很少,而回答也是稀烂 希望大家能帮我解决下此问题,先谢谢各位了
配置webpack.config.js时出现错误,提示如下所示
![图片说明](https://img-ask.csdn.net/upload/201702/14/1487087214_550237.png) 是怎么回事?我的代码如下所示: var path=require('path'); var webpack=require('webpack'); var HtmlWebpackPlugin=require('html-webpack-plugin'); //一些常用路径 var ROOT_PATH=path.resolve(__dirname); var APP_PATH=path.resolve(ROOT_PATH,'app'); var BUILD_PATH=path.resolve(ROOT_PATH,'build'); console.log("ROOT_PATH====="+ROOT_PATH); console.log("APP_PATH====="+APP_PATH); console.log("BUILD_PATH====="+BUILD_PATH); module.exports={ entry:{ app:path.resolve(APP_PATH,'index.jsx') }, output:{ path:BUILD_PATH, filename:'bundle.js' }, //开启 dev source map devtool:'eval-source-map', //开启 webpack dev server devServer:{ historyApiFallback:true, hot:true, inline:true, progress:true }, module: { //配置preLoaders,将eslint添加进入 // preLoaders: [ // { // test:/\.jsx?$/, // loaders:['eslint'], // include:APP_PATH // } // ], //配置loaders,将babel添加进去 loaders:[ { test:/\.jsx?$/, loaders:['babel'], include:APP_PATH } ] }, //配置plugin plugins:[ new HtmlWebpackPlugin({ title:'My first react app' }) ], resolve:{ extensions:['','.js','.jsx'] } } 如果去掉 , resolve:{ extensions:['','.js','.jsx'] } 这段代码之后,结果变为下面: ![图片说明](https://img-ask.csdn.net/upload/201702/15/1487141016_112667.png)
mac系统下,vue项目只要一写css样式就报错Unexpected keyword 'const'.
我看了下其他帖子,说是要webpack降级,我也降级了,但是还是照样提示这个 看到帖子里有说es6改成es5,这里怎么改啊,求告知! 这是我的package里的代码 { "name": "iredpacket", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build" }, "dependencies": { "babel-runtime": "^6.26.0", "core-js": "^2.6.5", "vue": "^2.6.10", "vue-router": "^3.0.3", "vuex": "^3.0.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.9.0", "@vue/cli-service": "^3.9.0", "babel-core": "^6.26.3", "babel-loader": "^8.0.6", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "node-sass": "^4.9.0", "sass-loader": "^7.1.0", "vue-template-compiler": "^2.6.10", "webpack-dev-server": "^2.7.1" }, "postcss": { "plugins": { "autoprefixer": {} } }, "browserslist": [ "> 1%", "last 2 versions" ] }
VUE build的时候app css CssSyntaxError错误
vue build的时候app css CssSyntaxError错误,run dev可以正常启动 错误信息如下 ``` - building for production...Error processing file: static/css/app.97c058584faa589ff57590333e2787e8.css (node:3172) UnhandledPromiseRejectionWarning: CssSyntaxError: G:\vue\recms-adminVue\static\css\app.97c058584faa589ff57590333e2787e8.css:1293:8: Unknown word at Input.error (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\input.js:130:16) at Parser.unknownWord (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:563:22) at Parser.decl (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:235:16) at Parser.other (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:133:18) at Parser.parse (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parser.js:77:16) at parse (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\parse.js:17:12) at new LazyResult (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\lazy-result.js:60:16) at Processor.<anonymous> (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\processor.js:138:12) at Processor.process (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\processor.js:117:23) at Function.creator.process (G:\vue\recms-adminVue\node_modules\_postcss@7.0.17@postcss\lib\postcss.js:148:43) at OptimizeCssAssetsPlugin.processCss (G:\vue\recms-adminVue\node_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-plugin\index.js :63:19) at Object.processor (G:\vue\recms-adminVue\node_modules\_optimize-css-assets-webpack-plugin@3.2.1@optimize-css-assets-webpack-plugin\index.js:29:23) at G:\vue\recms-adminVue\node_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-plugin\index.js:139:8 at arrayEach (G:\vue\recms-adminVue\node_modules\_lodash@4.17.14@lodash\_arrayEach.js:15:9) at forEach (G:\vue\recms-adminVue\node_modules\_lodash@4.17.14@lodash\forEach.js:38:10) at LastCallWebpackPlugin.process (G:\vue\recms-adminVue\node_modules\_last-call-webpack-plugin@2.1.2@last-call-webpack-plugin\index.js:136:3) (node:3172) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch blo ck, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:3172) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the No de.js process with a non-zero exit code. ``` build.js的代码 ``` const ora = require('ora') const rm = require('rimraf') const path = require('path') const chalk = require('chalk') const webpack = require('webpack') const config = require('../config') const webpackConfig = require('./webpack.prod.conf') const spinner = ora('building for production...') spinner.start() rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { if (err) throw err webpack(webpackConfig, function (err, stats) { spinner.stop() if (err) throw err process.stdout.write(stats.toString({ colors: true, modules: false, children: false, chunks: false, chunkModules: false }) + '\n\n') if (stats.hasErrors()) { console.log(chalk.red(' Build failed with errors.\n')) process.exit(1) } console.log(chalk.cyan(' Build complete.\n')) console.log(chalk.yellow( ' Tip: built files are meant to be served over an HTTP server.\n' + ' Opening index.html over file:// won\'t work.\n' )) }) }) ``` webpack.prod.conf.js的配置 ``` const env = require('../config/prod.env') const webpackConfig = merge(baseWebpackConfig, { module: { rules: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, extract: true, usePostCSS: true }) }, devtool: config.build.productionSourceMap ? config.build.devtool : false, output: { path: config.build.assetsRoot, filename: utils.assetsPath('js/[name].[chunkhash].js'), chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') }, plugins: [ // http://vuejs.github.io/vue-loader/en/workflow/production.html new webpack.DefinePlugin({ 'process.env': env }), // UglifyJs do not support ES6+, you can also use babel-minify for better treeshaking: https://github.com/babel/minify new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, sourceMap: config.build.productionSourceMap, parallel: true }), // extract css into its own file new ExtractTextPlugin({ filename: utils.assetsPath('css/[name].[contenthash].css'), // set the following option to `true` if you want to extract CSS from // codesplit chunks into this main css file as well. // This will result in *all* of your app's CSS being loaded upfront. allChunks: false, }), // Compress extracted CSS. We are using this plugin so that possible // duplicated CSS from different components can be deduped. new OptimizeCSSPlugin({ cssProcessorOptions: config.build.productionSourceMap ? { safe: true, map: { inline: false } } : { safe: true } }), // generate dist index.html with correct asset hash for caching. // you can customize output by editing /index.html // see https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ filename: config.build.index, template: 'index.html', inject: true, minify: { removeComments: true, collapseWhitespace: true, removeAttributeQuotes: true // more options: // https://github.com/kangax/html-minifier#options-quick-reference }, // necessary to consistently work with multiple chunks via CommonsChunkPlugin chunksSortMode: 'dependency' }), // keep module.id stable when vender modules does not change new webpack.HashedModuleIdsPlugin(), // enable scope hoisting new webpack.optimize.ModuleConcatenationPlugin(), // split vendor js into its own file new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: function (module) { // any required modules inside node_modules are extracted to vendor return ( module.resource && /\.js$/.test(module.resource) && module.resource.indexOf( path.join(__dirname, '../node_modules') ) === 0 ) } }), // extract webpack runtime and module manifest to its own file in order to // prevent vendor hash from being updated whenever app bundle is updated new webpack.optimize.CommonsChunkPlugin({ name: 'manifest', minChunks: Infinity }), // This instance extracts shared chunks from code splitted chunks and bundles them // in a separate chunk, similar to the vendor chunk // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk new webpack.optimize.CommonsChunkPlugin({ name: 'app', async: 'vendor-async', children: true, minChunks: 3 }), // copy custom static assets new CopyWebpackPlugin([ { from: path.resolve(__dirname, '../static'), to: config.build.assetsSubDirectory, ignore: ['.*'] } ]) ] }) if (config.build.productionGzip) { const CompressionWebpackPlugin = require('compression-webpack-plugin') webpackConfig.plugins.push( new CompressionWebpackPlugin({ asset: '[path].gz[query]', algorithm: 'gzip', test: new RegExp( '\\.(' + config.build.productionGzipExtensions.join('|') + ')$' ), threshold: 10240, minRatio: 0.8 }) ) } if (config.build.bundleAnalyzerReport) { const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin webpackConfig.plugins.push(new BundleAnalyzerPlugin()) } module.exports = webpackConfig ```
vue打包后iphone 5c ios10.3.3打开报错,调试时无错误. 求解决办法
### 问题描述: 公司测试小哥的苹果5c在本地调试的时候是可以打开的. 蓝后.. 打包后页面打开空白,在别的手机上表现良好.(可能安卓低版本也会报错吧) ### 环境背景及尝试过的方法: 出现问题的手机是 10.3ios版本的苹果5c 问题出现后, 我尝试加载 babel-polyfill,es6-promise但没有卵用,依旧报同样的错误 ### 相关代码 ``` main.js中 import 'babel-polyfill' import Es6Promise from 'es6-promise' require('es6-promise').polyfill() Es6Promise.polyfill() webpack.base.conf.js中也尝试过 entry: { app: ["babel-polyfill","./src/main.js"] } ``` ### 报错 1. SyntaxError: Cannot declare a let variable twice: 't'. vendor.js 2. TypeError: undefined is not an object (evaluating 'r[n].call') 各位大佬请问是我的开发方式不对吗? 寻求解决办法 .babelrc 代码 ``` { "presets": [ ["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }], "stage-2" ], "plugins": ["transform-vue-jsx", "transform-runtime"], "env": { "test": { "presets": ["env", "stage-2"], "plugins": ["istanbul"] } } } ``` webpack.base.conf.js ``` 'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') function resolve (dir) { return path.join(__dirname, '..', dir) } module.exports = { context: path.resolve(__dirname, '../'), entry: { app: ["./src/main.js"] }, output: { path: config.build.assetsRoot, filename: '[name].js', publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath }, plugins: [ new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", "windows.jQuery": "jquery" }) ], resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': resolve('src'), } }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, { test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] }, { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('img/[name].[hash:7].[ext]') } }, { test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('media/[name].[hash:7].[ext]') } }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') } } ] }, node: { // prevent webpack from injecting useless setImmediate polyfill because Vue // source contains it (although only uses it if it's native). setImmediate: false, // prevent webpack from injecting mocks to Node native modules // that does not make sense for the client dgram: 'empty', fs: 'empty', net: 'empty', tls: 'empty', child_process: 'empty' } } ```
webpack 引入vue,在vue中使用 mint-ui
在引入mint-ui 的文件和style.css 的时候,总是报下面的错误,不知道大神们怎么解决 ``` ERROR in ./node_modules/_mint-ui@1.0.2@mint-ui/lib/popup/style.css Module build failed: CssSyntaxError (2:1) Unknown word 1 | > 2 | var content = require("!!./style.css"); | ^ 3 | 4 | if(typeof content === 'string') content = [[module.id, content, '']]; @ ./node_modules/_mint-ui@1.0.2@mint-ui/lib/mint-ui.common.js 5052:18-56 @ ./src/main.js @ multi ./node_modules/_webpack-dev-server@2.11.3@webpack-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src/main.js ```
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
死磕YOLO系列,YOLOv1 的大脑、躯干和手脚
YOLO 是我非常喜欢的目标检测算法,堪称工业级的目标检测,能够达到实时的要求,它帮我解决了许多实际问题。 这就是 YOLO 的目标检测效果。它定位了图像中物体的位置,当然,也能预测物体的类别。 之前我有写博文介绍过它,但是每次重新读它的论文,我都有新的收获,为此我准备写一个系列的文章来详尽分析它。这是第一篇,从它的起始 YOLOv1 讲起。 YOLOv1 的论文地址:https://www.c
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的 回答 - Bravo Yeung,获得该问题下回答中得最高赞(236赞和1枚专业勋章),对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalk
记一次腾讯面试:进程之间究竟有哪些通信方式?如何通信? ---- 告别死记硬背
有一次面试的时候,被问到进程之间有哪些通信方式,不过由于之前没深入思考且整理过,说的并不好。想必大家也都知道进程有哪些通信方式,可是我猜很多人都是靠着”背“来记忆的,所以今天的这篇文章,讲给大家详细着讲解他们是如何通信的,让大家尽量能够理解他们之间的区别、优缺点等,这样的话,以后面试官让你举例子,你也能够顺手拈来。 1、管道 我们来看一条 Linux 的语句 netstat -tulnp | gr...
20行Python代码爬取王者荣耀全英雄皮肤
引言 王者荣耀大家都玩过吧,没玩过的也应该听说过,作为时下最火的手机MOBA游戏,咳咳,好像跑题了。我们今天的重点是爬取王者荣耀所有英雄的所有皮肤,而且仅仅使用20行Python代码即可完成。 准备工作 爬取皮肤本身并不难,难点在于分析,我们首先得得到皮肤图片的url地址,话不多说,我们马上来到王者荣耀的官网: 我们点击英雄资料,然后随意地选择一位英雄,接着F12打开调试台,找到英雄原皮肤的图片
网络(8)-HTTP、Socket、TCP、UDP的区别和联系
TCP/IP协议是传输层协议,主要解决数据如何在网络中传输,而HTTP是应用层协议,主要解决如何包装数据。 一、TCP与UDP的不同 1. 是否需要建立连接。 UDP在传送数据之前不需要先建立连接;TCP则提供面向连接的服务; 2. 是否需要给出确认 对方的传输层在收到UDP报文后,不需要给出任何确认,而 TCP需要给出确认报文,要提供可靠的、面向连接的传输服务。 3.虽然UDP不提供可靠交...
简明易理解的@SpringBootApplication注解源码解析(包含面试提问)
欢迎关注文章系列 ,关注我 《提升能力,涨薪可待》 《面试知识,工作可待》 《实战演练,拒绝996》 欢迎关注我博客,原创技术文章第一时间推出 也欢迎关注公 众 号【Ccww笔记】,同时推出 如果此文对你有帮助、喜欢的话,那就点个赞呗,点个关注呗! 《提升能力,涨薪可待篇》- @SpringBootApplication注解源码解析 一、@SpringBootApplication 的作用是什
防劝退!数据结构和算法难理解?可视化动画带你轻松透彻理解!
大家好,我是 Rocky0429,一个连数据结构和算法都不会的蒟蒻… 学过数据结构和算法的都知道这玩意儿不好学,没学过的经常听到这样的说法还没学就觉得难,其实难吗?真难! 难在哪呢?当年我还是个小蒟蒻,初学数据结构和算法的时候,在忍着枯燥看完定义原理,之后想实现的时候,觉得它们的过程真的是七拐八绕,及其难受。 在简单的链表、栈和队列这些我还能靠着在草稿上写写画画理解过程,但是到了数论、图...
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
开挂的人生!那些当选院士,又是ACM/IEEE 双料Fellow的华人学者们
昨日,2019年两院院士正式官宣,一时间抢占了各大媒体头条。 朋友圈也是一片沸腾,奔走相告,赶脚比自己中了大奖还嗨皮! 谁叫咱家导师就是这么厉害呢!!! 而就在最近,新一年度的IEEE/ACM Fellow也将正式公布。 作为学术届的顶级荣誉,不自然地就会将院士与Fellow作比较,到底哪个含金量更高呢? 学术君认为,同样是专业机构对学者的认可,考量标准不一,自然不能一概而论。 但...
聊聊C语言和指针的本质
坐着绿皮车上海到杭州,24块钱,很宽敞,在火车上非正式地聊几句。 很多编程语言都以 “没有指针” 作为自己的优势来宣传,然而,对于C语言,指针却是与生俱来的。 那么,什么是指针,为什么大家都想避开指针。 很简单, 指针就是地址,当一个地址作为一个变量存在时,它就被叫做指针,该变量的类型,自然就是指针类型。 指针的作用就是,给出一个指针,取出该指针指向地址处的值。为了理解本质,我们从计算机模型说起...
Python语言高频重点汇总
Python语言高频重点汇总 GitHub面试宝典仓库——点这里跳转 文章目录Python语言高频重点汇总**GitHub面试宝典仓库——点这里跳转**1. 函数-传参2. 元类3. @staticmethod和@classmethod两个装饰器4. 类属性和实例属性5. Python的自省6. 列表、集合、字典推导式7. Python中单下划线和双下划线8. 格式化字符串中的%和format9.
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
代码详解:如何用Python快速制作美观、炫酷且有深度的图表
全文共12231字,预计学习时长35分钟生活阶梯(幸福指数)与人均GDP(金钱)正相关的正则图本文将探讨三种用Python可视化数据的不同方法。以可视化《2019年世界幸福报告》的数据为例,本文用Gapminder和Wikipedia的信息丰富了《世界幸福报告》数据,以探索新的数据关系和可视化方法。《世界幸福报告》试图回答世界范围内影响幸福的因素。报告根据对“坎特里尔阶梯问题”的回答来确定幸...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
(经验分享)作为一名普通本科计算机专业学生,我大学四年到底走了多少弯路
今年正式步入了大四,离毕业也只剩半年多的时间,回想一下大学四年,感觉自己走了不少弯路,今天就来分享一下自己大学的学习经历,也希望其他人能不要走我走错的路。 (一)初进校园 刚进入大学的时候自己完全就相信了高中老师的话:“进入大学你们就轻松了”。因此在大一的时候自己学习的激情早就被抛地一干二净,每天不是在寝室里玩游戏就是出门游玩,不过好在自己大学时买的第一台笔记本性能并不是很好,也没让我彻底沉...
如何写一篇技术博客,谈谈我的看法
前言 只有光头才能变强。 文本已收录至我的GitHub精选文章,欢迎Star:https://github.com/ZhongFuCheng3y/3y 我一直推崇学技术可以写技术博客去沉淀自己的知识,因为知识点实在是太多太多了,通过自己的博客可以帮助自己快速回顾自己学过的东西。 我最开始的时候也是只记笔记,认为自己能看得懂就好。但如果想验证自己是不是懂了,可以写成技术博客。在写技术博客的...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
面试还搞不懂redis,快看看这40道面试题(含答案和思维导图)
Redis 面试题 1、什么是 Redis?. 2、Redis 的数据类型? 3、使用 Redis 有哪些好处? 4、Redis 相比 Memcached 有哪些优势? 5、Memcache 与 Redis 的区别都有哪些? 6、Redis 是单进程单线程的? 7、一个字符串类型的值能存储最大容量是多少? 8、Redis 的持久化机制是什么?各自的优缺点? 9、Redis 常见性...
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
互联网公司的裁员,能玩出多少种花样?
裁员,也是一门学问,可谓博大精深!以下,是互联网公司的裁员的多种方法:-正文开始-135岁+不予续签的理由:千禧一代网感更强。95后不予通过试用期的理由:已婚已育员工更有责任心。2通知接下来要过苦日子,让一部分不肯同甘共苦的员工自己走人,以“兄弟”和“非兄弟”来区别员工。3强制996。员工如果平衡不了工作和家庭,可在离婚或离职里二选一。4不布置任何工作,但下班前必须提交千字工作日报。5不给活干+...
【设计模式】单例模式的八种写法分析
网上泛滥流传单例模式的写法种类,有说7种的,也有说6种的,当然也不排除说5种的,他们说的有错吗?其实没有对与错,刨根问底,写法终究是写法,其本质精髓大体一致!因此完全没必要去追究写法的多少,有这个时间还不如跟着宜春去网吧偷耳机、去田里抓青蛙得了,一天天的....
《面试宝典》:检验是否为合格的初中级程序员的面试知识点,你都知道了吗?查漏补缺
欢迎关注文章系列,一起学习 《提升能力,涨薪可待篇》 《面试知识,工作可待篇》 《实战演练,拒绝996篇》 也欢迎关注公 众 号【Ccww笔记】,原创技术文章第一时间推出 如果此文对你有帮助、喜欢的话,那就点个赞呗,点个关注呗! 《面试知识,工作可待篇》-Java笔试面试基础知识大全 前言 是不是感觉找工作面试是那么难呢? 在找工作面试应在学习的基础进行总结面试知识点,工作也指日可待,欢...
关于研发效能提升的思考
研发效能提升是最近比较热门的一个话题,本人根据这几年的工作心得,做了一些思考总结,由于个人深度有限,暂且抛转引入。 三要素 任何生产力的提升都离不开这三个因素:人、流程和工具,少了其中任何一个因素都无法实现。 人,即思想,也就是古人说的“道”,道不同不相为谋,是制高点,也是高层建筑的基石。 流程,即方法,也是古人说的“法”。研发效能的提升,也就是要提高投入产出比,既要增加产出,也要减...
微博推荐算法简述
在介绍微博推荐算法之前,我们先聊一聊推荐系统和推荐算法。有这样一些问题:推荐系统适用哪些场景?用来解决什么问题、具有怎样的价值?效果如何衡量? 推荐系统诞生很早,但真正被大家所重视,缘起于以”facebook”为代表的社会化网络的兴起和以“淘宝“为代表的电商的繁荣,”选择“的时代已经来临,信息和物品的极大丰富,让用户如浩瀚宇宙中的小点,无所适从。推荐系统迎来爆发的机会,变得离用户更近: 快...
相关热词 c#导入fbx c#中屏蔽键盘某个键 c#正态概率密度 c#和数据库登陆界面设计 c# 高斯消去法 c# codedom c#读取cad文件文本 c# 控制全局鼠标移动 c# temp 目录 bytes初始化 c#
立即提问