Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in version 3.3.1 #870

Closed
sbrunner opened this issue Apr 29, 2019 · 10 comments · Fixed by #876
Closed

Regression in version 3.3.1 #870

sbrunner opened this issue Apr 29, 2019 · 10 comments · Fixed by #876

Comments

@sbrunner
Copy link

Describe the bug

Regression on vwersion 3.3.1

What is the current behavior?

I get the following error:

     + 1 hidden asset
    Entrypoint undefined = desktop.html
    [0] ../html-webpack-plugin/lib/loader.js!/src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/desktop.html.ejs 15.7 KiB {0} [built]
    [2] ../webpack/buildin/global.js 177 bytes {0} [built]
    [3] ../webpack/buildin/module.js 511 bytes {0} [built]
    [4] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/favicon.ico 64 bytes {0} [built]
    [5] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/logo.png 61 bytes {0} [built]
    [6] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/background-layer-button.png 80 bytes {0} [built]
        + 1 hidden module
Child html-webpack-plugin for "iframe_api.html":
     3 assets
    Entrypoint undefined = iframe_api.html
    [0] ../html-webpack-plugin/lib/loader.js!/src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/iframe_api.html.ejs 4.62 KiB {0} [built]
    [2] ../webpack/buildin/global.js 177 bytes {0} [built]
    [3] ../webpack/buildin/module.js 511 bytes {0} [built]
    [4] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/favicon.ico 64 bytes {0} [built]
    [5] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/background-layer-button.png 80 bytes {0} [built]
        + 1 hidden module
Child html-webpack-plugin for "mobile.html":
     3 assets
    Entrypoint undefined = mobile.html
    [0] ../html-webpack-plugin/lib/loader.js!/src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/mobile.html.ejs 9.76 KiB {0} [built]
    [2] ../webpack/buildin/global.js 177 bytes {0} [built]
    [3] ../webpack/buildin/module.js 511 bytes {0} [built]
    [4] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/favicon.ico 64 bytes {0} [built]
    [5] /src/geoportal/testgeomapfish_geoportal/static-ngeo/js/apps/image/logo.png 61 bytes {0} [built]
    [6] ./contribs/gmf/src/icons/layers.svg 332 bytes {0} [built]
        + 1 hidden module
                            Thanks for using Webpack!
                 Please consider donating to our Open Collective
                        to help us maintain this package.
                 Donate: https://opencollective.com/webpack/donate
fs.js:114
    throw err;
    ^
Error: EPERM: operation not permitted, utime '/usr/lib/node_modules/webpack-cli/bin/opencollective.js'
    at utimesSync (fs.js:1108:3)
    at compilerCallback (/usr/lib/node_modules/webpack-cli/bin/cli.js:336:8)
    at compiler.run (/usr/lib/node_modules/webpack-cli/bin/cli.js:361:7)
    at finalCallback (/usr/lib/node_modules/webpack/lib/Compiler.js:220:39)
    at hooks.done.callAsync.err (/usr/lib/node_modules/webpack/lib/Compiler.js:269:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/lib/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/usr/lib/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at emitRecords.err (/usr/lib/node_modules/webpack/lib/Compiler.js:267:22)
    at Compiler.emitRecords (/usr/lib/node_modules/webpack/lib/Compiler.js:449:39)
    at emitAssets.err (/usr/lib/node_modules/webpack/lib/Compiler.js:261:10)
    at hooks.afterEmit.callAsync.err (/usr/lib/node_modules/webpack/lib/Compiler.js:435:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/lib/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at AsyncSeriesHook.lazyCompileHook (/usr/lib/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
    at asyncLib.forEachLimit.err (/usr/lib/node_modules/webpack/lib/Compiler.js:432:27)
    at /usr/lib/node_modules/webpack/node_modules/neo-async/async.js:2813:7
    at done (/usr/lib/node_modules/webpack/node_modules/neo-async/async.js:3521:9)
    at /usr/lib/node_modules/webpack/node_modules/graceful-fs/graceful-fs.js:45:10
    at FSReqWrap.args [as oncomplete] (fs.js:140:20)
CONST_Makefile:604: recipe for target '/build/apps.timestamp' failed
make: *** [/build/apps.timestamp] Error 1

To Reproduce

  1. Install Webpack globally npm install --global ... (in my case in a Linux Docker container).
  2. Build the project using webpack.

Expected behavior
Build success

Please paste the results of webpack-cli info here, and mention other relevant information

Full log:
https://travis-ci.org/camptocamp/c2cgeoportal/builds/525892796#L4685

Additional context
Looks that's this line is in charge of this issue:
https://github.com/webpack/webpack-cli/pull/755/files/55992a45a302977ef5e5075e81cc127e9fafdf07#diff-22d5d2b57c69d2e1ac054c4d0f744ff1R493

@misterdev
Copy link
Contributor

Thanks for reporting, I'm going to investigate :)

@fredj
Copy link

fredj commented Apr 29, 2019

@misterdev I've created a minimal project to reproduce the issue: https://github.com/fredj/webpack-atime
It can only be reproduced on Mondays 😄

@Ignacas
Copy link

Ignacas commented May 7, 2019

For me, the same issue appeared yesterday (2019.05.06 Monday). And today I don't get any error, everything builds fine after I have done nothing, it is really strange.

@evenstensberg
Copy link
Member

Update to the latest version

@pastak
Copy link
Contributor

pastak commented Jun 6, 2019

I also have faced same issue on 2019.05.06 Monday with webpack 3.3.2

@evenstensberg
Copy link
Member

1.remove webpack-cli from your pkg json
2. rm -rf node_modules package-lock.json && npm install && npm install --save-dev webpack-cli

@pastak
Copy link
Contributor

pastak commented Jun 6, 2019

In my environment, It looks that checking node process have file write permission is not enough. I try to fix this problem to solve #935

@evenstensberg
Copy link
Member

Great, thanks for explaining. Nice PR btw

@Tarasovych
Copy link

Same issue here, webpack-cli 3.3.2 (with laravel-mix).

@misterdev
Copy link
Contributor

misterdev commented Jun 10, 2019

@Tarasovych, you should try updating to the most recent version, v3.3.3 at the moment :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants