Skip to content

Instantly share code, notes, and snippets.

@cnk
Created October 22, 2020 16:25
Show Gist options
  • Save cnk/e0edcd0c2020481eabd5c5c51ec0b7ca to your computer and use it in GitHub Desktop.
Save cnk/e0edcd0c2020481eabd5c5c51ec0b7ca to your computer and use it in GitHub Desktop.
frontend |
frontend | > [email protected] start /code/wagtail
frontend | > npm run watch
frontend |
frontend |
frontend | > [email protected] watch /code/wagtail
frontend | > npm-run-all --parallel gulp:dev:watch webpack:dev:watch
frontend |
web | Watching for file changes with StatReloader
web | Performing system checks...
web |
frontend |
frontend | > [email protected] webpack:dev:watch /code/wagtail
frontend | > webpack --config ./client/webpack.config.js --mode development --progress --watch
frontend |
frontend |
frontend | > [email protected] gulp:dev:watch /code/wagtail
frontend | > gulp watch
frontend |
web | System check identified no issues (0 silenced).
frontend | webpack 4.44.2
frontend | Usage: https://webpack.js.org/api/cli/
frontend | Usage without config file: webpack <entry> [<entry>] <output>
frontend | Usage with config file: webpack
frontend |
frontend | Config options:
frontend | --config Path to the config file
frontend | [string] [default: webpack.config.js or webpackfile.js]
frontend | --config-name Name of the config to use [string]
frontend | --env Environment passed to the config, when it is a function
frontend |
frontend | Basic options:
frontend | --context The root directory for resolving entry point and stats
frontend | [string] [default: The current directory]
frontend | --entry The entry point [string]
frontend | --watch, -w Watch the filesystem for changes [boolean]
frontend | --debug Switch loaders to debug mode [boolean]
frontend | --devtool Enable devtool for better debugging experience (Example:
frontend | --devtool eval-cheap-module-source-map) [string]
frontend | -d shortcut for --debug --devtool eval-cheap-module-source-map
frontend | --output-pathinfo [boolean]
frontend | -p shortcut for --optimize-minimize --define
frontend | process.env.NODE_ENV="production" [boolean]
frontend | --progress Print compilation progress in percentage [boolean]
frontend |
frontend | Module options:
frontend | --module-bind Bind an extension to a loader [string]
frontend | --module-bind-post [string]
frontend | --module-bind-pre [string]
frontend |
frontend | Output options:
frontend | --output-path The output path for compilation assets
frontend | [string] [default: The current directory]
frontend | --output-filename The output filename of the bundle
frontend | [string] [default: [name].js]
frontend | --output-chunk-filename The output filename for additional chunks
frontend | [string] [default: filename with [id] instead of [name] or [id] prefixed]
frontend | --output-source-map-filename The output filename for the SourceMap [string]
frontend | --output-public-path The public path for the assets [string]
frontend | --output-jsonp-function The name of the jsonp function used for chunk
frontend | loading [string]
frontend | --output-pathinfo Include a comment with the request for every
frontend | dependency (require, import, etc.) [boolean]
frontend | --output-library Expose the exports of the entry point as library
frontend | [string]
frontend | --output-library-target The type for exposing the exports of the entry
frontend | point as library [string]
frontend |
frontend | Advanced options:
frontend | --records-input-path Path to the records file (reading) [string]
frontend | --records-output-path Path to the records file (writing) [string]
frontend | --records-path Path to the records file [string]
frontend | --define Define any free var in the bundle [string]
frontend | --target The targeted execution environment [string]
frontend | --cache Enable in memory caching
frontend | [boolean] [default: It's enabled by default when watching]
frontend | --watch-stdin, --stdin Exit the process when stdin is closed [boolean]
frontend | --watch-aggregate-timeout Timeout for gathering changes while watching
frontend | --watch-poll The polling interval for watching (also enable
frontend | polling) [string]
frontend | --hot Enables Hot Module Replacement [boolean]
frontend | --prefetch Prefetch this request (Example: --prefetch
frontend | ./file.js) [string]
frontend | --provide Provide these modules as free vars in all modules
frontend | (Example: --provide jQuery=jquery) [string]
frontend | --labeled-modules Enables labeled modules [boolean]
frontend | --plugin Load this plugin [string]
frontend | --bail Abort the compilation on first error
frontend | [boolean] [default: null]
frontend | --profile Profile the compilation and include information in
frontend | stats [boolean] [default: null]
frontend |
frontend | Resolving options:
frontend | --resolve-alias Setup a module alias for resolving (Example:
frontend | jquery-plugin=jquery.plugin) [string]
frontend | --resolve-extensions Setup extensions that should be used to resolve
frontend | modules (Example: --resolve-extensions .es6,.js)
frontend | [array]
frontend | --resolve-loader-alias Setup a loader alias for resolving [string]
frontend |
frontend | Optimizing options:
frontend | --optimize-max-chunks Try to keep the chunk count below a limit
frontend | --optimize-min-chunk-size Try to keep the chunk size above a limit
frontend | --optimize-minimize Minimize javascript and switches loaders to
frontend | minimizing [boolean]
frontend |
frontend | Stats options:
frontend | --color, --colors Enables/Disables colors on the console
frontend | [boolean] [default: (supports-color)]
frontend | --sort-modules-by Sorts the modules list by property in module
frontend | [string]
frontend | --sort-chunks-by Sorts the chunks list by property in chunk
frontend | [string]
frontend | --sort-assets-by Sorts the assets list by property in asset
frontend | [string]
frontend | --hide-modules Hides info about modules [boolean]
frontend | --display-exclude Exclude modules in the output [string]
frontend | --display-modules Display even excluded modules in the output
frontend | [boolean]
frontend | --display-max-modules Sets the maximum number of visible modules in
frontend | output [number]
frontend | --display-chunks Display chunks in the output [boolean]
frontend | --display-entrypoints Display entry points in the output [boolean]
frontend | --display-origins Display origins of chunks in the output
frontend | [boolean]
frontend | --display-cached Display also cached modules in the output
frontend | [boolean]
frontend | --display-cached-assets Display also cached assets in the output
frontend | [boolean]
frontend | --display-reasons Display reasons about module inclusion in the
frontend | output [boolean]
frontend | --display-depth Display distance from entry point for each
frontend | module [boolean]
frontend | --display-used-exports Display information about used exports in
frontend | modules (Tree Shaking) [boolean]
frontend | --display-provided-exports Display information about exports provided
frontend | from modules [boolean]
frontend | --display-optimization-bailout Display information about why optimization
frontend | bailed out for modules [boolean]
frontend | --display-error-details Display details about errors [boolean]
frontend | --display Select display preset (verbose, detailed,
frontend | normal, minimal, errors-only, none) [string]
frontend | --verbose Show more details [boolean]
frontend |
frontend | Options:
frontend | --help, -h Show help [boolean]
frontend | --version, -v Show version number [boolean]
frontend | --json, -j Prints the result as JSON. [boolean]
frontend |
frontend | Unknown argument: mode
frontend | npm ERR! code ELIFECYCLE
frontend | npm ERR! errno 1
frontend | npm ERR! [email protected] webpack:dev:watch: `webpack --config ./client/webpack.config.js --mode development --progress --watch`
frontend | npm ERR! Exit status 1
frontend | npm ERR!
frontend | npm ERR! Failed at the [email protected] webpack:dev:watch script.
frontend | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend |
frontend | npm ERR! A complete log of this run can be found in:
frontend | npm ERR! /root/.npm/_logs/2020-10-22T16_10_39_303Z-debug.log
web | October 22, 2020 - 16:10:41
web | Django version 3.1.2, using settings 'bakerydemo.settings.local'
web | Starting development server at http://0.0.0.0:8000/
web | Quit the server with CONTROL-C.
frontend | [16:11:07] Using gulpfile /code/wagtail/gulpfile.js
frontend | [16:11:07] Starting 'watch'...
frontend | [16:11:07] Starting 'build'...
frontend | [16:11:07] Starting 'styles'...
frontend | [16:11:07] Starting 'styles:sass'...
frontend | Unknown error from PostCSS plugin. Your current PostCSS version is 7.0.34, but postcss-merge-rules uses 5.2.18. Perhaps this is the source of the error below.
frontend | [16:11:19] 'styles:sass' errored after 12 s
frontend | [16:11:19] TypeError in plugin "gulp-postcss"
frontend | Message:
frontend | decl.moveTo is not a function
frontend | Details:
frontend | postcssNode: .summary ul.stats li{box-sizing:border-box;display:inline;float:left;width:33.3333333333%;padding-right:1.5%;padding-left:1.5%;margin-bottom:2em}
frontend | fileName: /code/wagtail/wagtail/admin/static_src/wagtailadmin/scss/layouts/home.css
frontend | domainEmitter: [object Object]
frontend | domain: [object Object]
frontend | domainThrown: false
frontend |
frontend | Stack:
frontend | TypeError: decl.moveTo is not a function
frontend | at /code/wagtail/wagtail/admin/static_src/wagtailadmin/scss/layouts/home.css:82:1
frontend | at /code/wagtail/wagtail/admin/static_src/wagtailadmin/scss/layouts/home.css:83:3
frontend | at /code/wagtail/node_modules/postcss-merge-rules/dist/index.js:246:22
frontend | at /code/wagtail/node_modules/postcss/lib/container.js:139:18
frontend | at Rule.each (/code/wagtail/node_modules/postcss/lib/container.js:105:16)
frontend | at Rule.walk (/code/wagtail/node_modules/postcss/lib/container.js:135:17)
frontend | at /code/wagtail/node_modules/postcss-merge-rules/dist/index.js:242:18
frontend | at /code/wagtail/node_modules/postcss/lib/container.js:243:18
frontend | at /code/wagtail/node_modules/postcss/lib/container.js:139:18
frontend | at Root.each (/code/wagtail/node_modules/postcss/lib/container.js:105:16)
frontend | at Root.walk (/code/wagtail/node_modules/postcss/lib/container.js:135:17)
frontend | at Root.walkRules (/code/wagtail/node_modules/postcss/lib/container.js:241:19)
frontend | [16:11:19] 'styles' errored after 12 s
frontend | [16:11:19] 'build' errored after 12 s
frontend | [16:11:19] 'watch' errored after 12 s
frontend | npm ERR! code ELIFECYCLE
frontend | npm ERR! errno 1
frontend | npm ERR! [email protected] gulp:dev:watch: `gulp watch`
frontend | npm ERR! Exit status 1
frontend | npm ERR!
frontend | npm ERR! Failed at the [email protected] gulp:dev:watch script.
frontend | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend |
frontend | npm ERR! A complete log of this run can be found in:
frontend | npm ERR! /root/.npm/_logs/2020-10-22T16_11_19_827Z-debug.log
frontend | ERROR: "webpack:dev:watch" exited with 1.
frontend | npm ERR! code ELIFECYCLE
frontend | npm ERR! errno 1
frontend | npm ERR! [email protected] watch: `npm-run-all --parallel gulp:dev:watch webpack:dev:watch`
frontend | npm ERR! Exit status 1
frontend | npm ERR!
frontend | npm ERR! Failed at the [email protected] watch script.
frontend | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend |
frontend | npm ERR! A complete log of this run can be found in:
frontend | npm ERR! /root/.npm/_logs/2020-10-22T16_11_19_863Z-debug.log
frontend | npm ERR! code ELIFECYCLE
frontend | npm ERR! errno 1
frontend | npm ERR! [email protected] start: `npm run watch`
frontend | npm ERR! Exit status 1
frontend | npm ERR!
frontend | npm ERR! Failed at the [email protected] start script.
frontend | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend |
frontend | npm ERR! A complete log of this run can be found in:
frontend | npm ERR! /root/.npm/_logs/2020-10-22T16_11_19_891Z-debug.log
frontend exited with code 1
@cnk
Copy link
Author

cnk commented Oct 22, 2020

When rebuilding the container, I got the following warnings about deprecated packages. Not sure if this is related or not:

Step 5/6 : RUN npm --prefix / install
 ---> Running in 68226db90873
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: deprecated
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported

> [email protected] postinstall /node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"10.22.1","npm":"6.14.8"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of [email protected] - 3.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^2.10.2 || 3.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.

added 1760 packages from 922 contributors and audited 1767 packages in 103.231s

120 packages are looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
Removing intermediate container 68226db90873
 ---> a6ecb7b7ad75
Step 6/6 : RUN npm install npm-run-all gulp webpack /
 ---> Running in 9af22c35d0ec
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"10.22.1","npm":"6.14.8"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] - 3.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^2.10.2 || 3.x but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment