For a unkwon reason, when we try to run the build, the following error is occorring.
---Steps to reproduce---
1 - yarn or npm install to install all dependecies
2 - yarn or npm run build (vue-cli-service-build)
----End steps--------
----Error log below------
ERROR Error: EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:493:3)
at tryReadSync (fs.js:332:20)
at Object.readFileSync (fs.js:369:19)
at Purgecss.extractFileSelector (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss/lib/purgecss.js:673:32)
at Purgecss.purge (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss/lib/purgecss.js:443:35)
at /Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss-webpack-plugin/lib/purgecss-webpack-plugin.js:282:33
at Array.forEach ()
at /Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss-webpack-plugin/lib/purgecss-webpack-plugin.js:247:23
at Array.forEach ()
at PurgecssPlugin.runPluginHook (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss-webpack-plugin/lib/purgecss-webpack-plugin.js:235:26)
at /Users/iuripires/Desktop/trade-app-one-frontend/node_modules/purgecss-webpack-plugin/lib/purgecss-webpack-plugin.js:219:18
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1)
at AsyncSeriesHook.lazyCompileHook (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/tapable/lib/Hook.js:154:20)
at hooks.optimizeTree.callAsync.err (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/webpack/lib/Compilation.js:1405:32)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/iuripires/Desktop/trade-app-one-frontend/node_modules/tapable/lib/Hook.js:154:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----End of error log------
-----Package JSON------
{
"name": "trade-app-one",
"version": "1.0.1",
"description": "Proposal: All needs from retail in one app",
"author": "TradeUp Group Team",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit",
"test:unit": "vue-cli-service test:unit",
"test:watch": "vue-cli-service test:unit --watch",
"test:clear": "vue-cli-service test:unit --clearCache"
},
"husky": {
"hooks": {
"pre-push": "npm run lint && npm run test:unit"
}
},
"dependencies": {
"@babel/polyfill": "7.4.4",
"@babel/runtime": "7.5.5",
"card-validator": "6.2.0",
"highcharts": "7.1.3",
"moment": "2.24.0",
"pdfjs-dist": "2.1.266",
"powerbi-client": "2.10.2",
"printd": "1.4.0",
"qrcode.vue": "^1.7.0",
"quagga": "0.12.1",
"raven-js": "3.27.2",
"register-service-worker": "1.6.2",
"svgxuse": "1.2.6",
"sweetalert2": "7.33.1",
"tao-design-system": "0.7.1",
"tinycolor2": "1.4.1",
"vue": "2.6.10",
"vue-highcharts": "0.1.0",
"vue-i18n": "8.14.0",
"vue-router": "3.1.3",
"vue-slicksort": "1.1.3",
"vue-the-mask": "0.11.1",
"vue2-highcharts": "1.2.5",
"vuex": "3.1.1"
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "7.6.0",
"@types/jest": "24.0.18",
"@vue/cli-plugin-babel": "3.11.0",
"@vue/cli-plugin-eslint": "3.11.0",
"@vue/cli-plugin-pwa": "3.11.0",
"@vue/cli-plugin-unit-jest": "3.11.0",
"@vue/cli-service": "3.11.0",
"@vue/eslint-config-standard": "4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"autodll-webpack-plugin": "0.4.2",
"autoprefixer": "9.6.1",
"axios": "0.19.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "23.6.0",
"cache-loader": "4.1.0",
"eslint-plugin-jest": "22.17.0",
"glob-all": "3.1.0",
"husky": "3.0.4",
"node-sass": "4.12.0",
"normalize.css": "8.0.1",
"purgecss-webpack-plugin": "1.5.0",
"reset-css": "4.0.1",
"sass-loader": "7.3.1",
"stylelint": "11.0.0",
"stylelint-config-recommended-scss": "3.3.0",
"stylelint-scss": "3.11.0",
"vue-cli-plugin-webpack-bundle-analyzer": "1.4.0",
"vue-eslint-parser": "5.0.0",
"vue-template-compiler": "2.6.10",
"worker-loader": "2.0.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
}
}
----End package JSON------
Ps: Normal usage of the component following the documentation.