web_1 | The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
web_1 | ["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
web_1 | to the "plugins" section of your Babel config.
web_1 | Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-property-in-object.
web_1 | The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
web_1 | ["@babel/plugin-proposal-private-methods", { "loose": true }]
web_1 | to the "plugins" section of your Babel config.
web_1 | Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
web_1 | The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
web_1 | ["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
web_1 | to the "plugins" section of your Babel config.
web_1 | Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-property-in-object.
web_1 | The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
web_1 | ["@babel/plugin-proposal-private-methods", { "loose": true }]
web_1 | to the "plugins" section of your Babel config.
web_1 |
web_1 | [Webpacker] Hash: d12b74a9644751c2a0c7
web_1 | Version: webpack 4.46.0
web_1 | Time: 14228ms
web_1 | Built at: 09/05/2021 5:46:46 AM
web_1 |
docker-compose up
を実行したら、急に以上のようなクソながいエラーが出たので、
docker attach coffee_passport_webpacker_1
Would you like to install serve? (That will run yarn add -D @webpack-cli/serve) (yes/NO) : yes
なにがあったのか見るために
docker attach coffee_passport_webpacker_1
を実行して、
Would you like to install serve? (That will run yarn add -D @webpack-cli/serve) (yes/NO) : yes
CLIで色々みるためにはこういったものが必要だとおもったのでインストールすると、
info Direct dependencies
└─ @webpack-cli/serve@1.5.2
info All dependencies
├─ @babel/helper-explode-assignable-expression@7.15.4
├─ @babel/helper-get-function-arity@7.15.4
├─ @babel/helper-wrap-function@7.15.4
├─ @babel/helpers@7.15.4
├─ @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.15.4
├─ @babel/plugin-proposal-async-generator-functions@7.15.4
├─ @babel/plugin-proposal-class-static-block@7.15.4
├─ @babel/plugin-proposal-private-property-in-object@7.15.4
├─ @babel/plugin-transform-block-scoping@7.15.3
├─ @babel/plugin-transform-classes@7.15.4
├─ @babel/plugin-transform-for-of@7.15.4
├─ @babel/plugin-transform-modules-commonjs@7.15.4
├─ @babel/plugin-transform-modules-systemjs@7.15.4
├─ @webpack-cli/serve@1.5.2
├─ braces@2.3.2
├─ chokidar@2.1.8
├─ path-key@2.0.1
└─ string.prototype.trimend@1.0.4
Done in 223.11s.
TypeError: Class constructor ServeCommand cannot be invoked without 'new'
at runWhenInstalled (/coffee_passport/node_modules/webpack-cli/bin/utils/prompt-command.js:46:9)
at runCommand.then._ (/coffee_passport/node_modules/webpack-cli/bin/utils/prompt-command.js:124:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
となった。。。
success Saved lockfile.
success Saved 18 new dependencies.
info Direct dependencies
└─ @webpack-cli/serve@1.5.2
info All dependencies
webpacker_1 | ├─ @babel/helper-explode-assignable-expression@7.15.4
webpacker_1 | ├─ @babel/helper-get-function-arity@7.15.4
webpacker_1 | ├─ @babel/helper-wrap-function@7.15.4
webpacker_1 | ├─ @babel/helpers@7.15.4
webpacker_1 | ├─ @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.15.4
webpacker_1 | ├─ @babel/plugin-proposal-async-generator-functions@7.15.4
webpacker_1 | ├─ @babel/plugin-proposal-class-static-block@7.15.4
webpacker_1 | ├─ @babel/plugin-proposal-private-property-in-object@7.15.4
webpacker_1 | ├─ @babel/plugin-transform-block-scoping@7.15.3
webpacker_1 | ├─ @babel/plugin-transform-classes@7.15.4
webpacker_1 | ├─ @babel/plugin-transform-for-of@7.15.4
webpacker_1 | ├─ @babel/plugin-transform-modules-commonjs@7.15.4
webpacker_1 | ├─ @babel/plugin-transform-modules-systemjs@7.15.4
webpacker_1 | ├─ @webpack-cli/serve@1.5.2
webpacker_1 | ├─ braces@2.3.2
webpacker_1 | ├─ chokidar@2.1.8
webpacker_1 | ├─ path-key@2.0.1
webpacker_1 | └─ string.prototype.trimend@1.0.4
Done in 223.11s.
webpacker_1 | TypeError: Class constructor ServeCommand cannot be invoked without 'new'
webpacker_1 | at runWhenInstalled (/coffee_passport/node_modules/webpack-cli/bin/utils/prompt-command.js:46:9)
webpacker_1 | at runCommand.then._ (/coffee_passport/node_modules/webpack-cli/bin/utils/prompt-command.js:124:15)
webpacker_1 | at process._tickCallback (internal/process/next_tick.js:68:7)
coffee_passport_webpacker_1 exited with code 1
webpackerコンテナからこんなログが出力された。。。
docker-compose up
をまたやり直したら上手く言った。。。。
依存関係の問題あるけど大丈夫なんすかね。。。