hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

Error: UNKNOWN: unknown error, open

Open joacim-boive opened this issue 7 years ago • 0 comments

Expected Behavior

It should work. :)

I get this fairly frequently during initial build, never with HMR.

Actual Behavior

It sometimes crashes.

Is an error being thrown?

ModuleBuildError: Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js): Error: UNKNOWN: unknown error, open 'C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\.cache\hard-source\3e4150d9f3c3afd22ffa4b3eb6a780fcf3644cc342cdb1a956fe85cdbea5f5f0\version' at runLoaders (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\webpack\lib\NormalModule.js:286:20) at C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\loader-runner\lib\LoaderRunner.js:364:11 at C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\loader-runner\lib\LoaderRunner.js:179:20 at context.callback (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at childCompiler.runAsChild (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\mini-css-extract-plugin\dist\loader.js:116:21) at compile (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\webpack\lib\Compiler.js:282:20) at hooks.afterCompile.callAsync.err (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\webpack\lib\Compiler.js:551:23) at _fn0.then._err0 (eval at create (C:\Users\jobo15\IdeaProjects\ecster-login\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:33:1) at <anonymous>

Steps to Reproduce

It occurs intermittently, so hard to provide a step-by-step. The solution is always to clear the .cache/hard-source.

Operating System, Node, and NPM dependency versions

Windows 7
Node 8.9.4
    "devDependencies": {
        "@ecster/ecster-gulp-tasks": "^1.0.45",
        "react": "^16.4.2",
        "react-dom": "^16.4.2"
    },
    "dependencies": {
        "@babel/core": "^7.0.0-rc.1",
        "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1",
        "@babel/plugin-proposal-object-rest-spread": "^7.0.0-rc.1",
        "@babel/plugin-syntax-dynamic-import": "^7.0.0-rc.1",
        "@babel/plugin-transform-modules-commonjs": "^7.0.0-rc.1",
        "@babel/plugin-transform-react-jsx": "^7.0.0-rc.1",
        "@babel/plugin-transform-runtime": "^7.0.0-rc.1",
        "@babel/plugin-transform-spread": "^7.0.0-rc.1",
        "@babel/polyfill": "^7.0.0-rc.1",
        "@babel/preset-env": "^7.0.0-rc.1",
        "@babel/preset-react": "^7.0.0-rc.1",
        "@babel/runtime": "^7.0.0-rc.1",
        "@ecster/ecster-styles": "^2.0.187",
        "@types/enzyme": "^3.1.13",
        "@types/enzyme-adapter-react-16": "^1.0.3",
        "@types/eslint": "^4.16.3",
        "@types/http-proxy-middleware": "^0.17.5",
        "@types/jest": "^23.3.1",
        "@types/koa": "^2.0.46",
        "args": "^5.0.0",
        "autoprefixer": "^9.1.1",
        "babel-core": "^7.0.0-bridge.0",
        "babel-eslint": "^8.2.6",
        "babel-jest": "^23.4.2",
        "babel-loader": "^8.0.0-beta.4",
        "babel-preset-airbnb": "^2.5.3",
        "clear": "^0.1.0",
        "clipboardy": "^1.2.3",
        "colors": "^1.3.1",
        "compression": "^1.7.3",
        "concurrently": "^3.6.1",
        "connect-history-api-fallback": "^1.5.0",
        "copy-webpack-plugin": "^4.5.2",
        "cosmiconfig": "^5.0.6",
        "css-loader": "^1.0.0",
        "dateformat": "^3.0.3",
        "del": "^3.0.0",
        "duplicate-package-checker-webpack-plugin": "^3.0.0",
        "enzyme": "^3.4.2",
        "enzyme-adapter-react-16": "^1.2.0",
        "eslint": "^5.3.0",
        "eslint-config-airbnb": "^17.1.0",
        "eslint-config-prettier": "^3.0.1",
        "eslint-loader": "^2.1.0",
        "eslint-plugin-import": "^2.14.0",
        "eslint-plugin-jsx-a11y": "^6.1.1",
        "eslint-plugin-prettier": "^2.6.2",
        "eslint-plugin-react": "^7.11.1",
        "expect": "^23.5.0",
        "extract-loader": "^2.0.1",
        "extracted-loader": "^1.0.7",
        "favicons-webpack-plugin": "0.0.9",
        "figures": "^2.0.0",
        "file-loader": "^1.1.10",
        "fs-extra": "^7.0.0",
        "get-port": "^4.0.0",
        "glob": "^7.1.2",
        "glob-all": "^3.1.0",
        "hard-source-webpack-plugin": "^0.12.0",
        "html-loader": "^0.5.5",
        "html-webpack-plugin": "^3.2.0",
        "http-proxy-middleware": "^0.18.0",
        "husky": "^0.14.3",
        "ip": "^1.1.5",
        "is-reachable": "^2.4.0",
        "jest": "^23.5.0",
        "jest-teamcity-reporter": "^0.9.0",
        "jsome": "^2.5.0",
        "koa": "^2.5.2",
        "koa-compress": "^3.0.0",
        "koa-connect": "^2.0.1",
        "koa-logger": "^3.2.0",
        "lazysizes": "^4.1.0",
        "lint-staged": "^7.2.2",
        "mini-css-extract-plugin": "^0.4.1",
        "node-sass": "^4.9.3",
        "node-sass-import-once": "^1.2.0",
        "node-sass-once-importer": "^5.2.0",
        "nodemon": "^1.18.2",
        "normalize-scss": "^7.0.1",
        "npm-run-all": "^4.1.2",
        "once": "^1.4.0",
        "optimize-css-assets-webpack-plugin": "^5.0.0",
        "path": "^0.12.7",
        "postcss-flexbugs-fixes": "^4.1.0",
        "postcss-loader": "^3.0.0",
        "prettier": "^1.14.2",
        "progress-bar-webpack-plugin": "^1.11.0",
        "purify-css": "^1.2.6",
        "purifycss-webpack": "^0.7.0",
        "react-hot-loader": "^4.3.4",
        "regenerator-runtime": "^0.12.1",
        "resolve-url-loader": "^2.3.0",
        "rimraf": "^2.6.2",
        "sass-loader": "^7.1.0",
        "script-ext-html-webpack-plugin": "^2.0.1",
        "serve": "^9.6.0",
        "ssl-root-cas": "^1.2.5",
        "style-ext-html-webpack-plugin": "^3.4.7",
        "style-loader": "^0.22.1",
        "uglifyjs-webpack-plugin": "^1.3.0",
        "url-loader": "^1.1.0",
        "webpack": "^4.16.5",
        "webpack-bundle-analyzer": "^2.13.1",
        "webpack-cli": "^3.1.0",
        "webpack-dev-middleware": "^3.1.3",
        "webpack-dev-server": "^3.1.5",
        "webpack-merge": "^4.1.4",
        "webpack-monitor": "^1.0.14",
        "webpack-serve": "^2.0.2",
        "webpackbar": "^2.6.2",
        "yargs-parser": "^10.1.0"
    }

joacim-boive avatar Aug 20 '18 05:08 joacim-boive