You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get Jetpack up using Docker. When I issued yarn docker:up, the containers started and WP was accessible. When I accessed the Jetpack menu in wp-admin, I received the error:
As instructed, I did yarn distclean && yarn build, which resulted in this error for me:
[12:14:57] Dashboard RTL CSS finished.
[12:14:57] DOPS Components RTL CSS finished.
[12:14:58] Building static HTML from built JS…
[BABEL] Note: The code generator has deoptimised the styling of "/Users/user/code/jetpack/_inc/build/static.js" as it exceeds the max of "500KB".
fs.js:159
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:159:9)
at Object.fs.writeFile (fs.js:1278:14)
at Stream.<anonymous> (/Users/user/code/jetpack/gulpfile.babel.js:256:9)
at Stream.emit (events.js:187:15)
at drain (/Users/user/code/jetpack/node_modules/through/index.js:34:23)
at Stream.stream.queue.stream.push (/Users/user/code/jetpack/node_modules/through/index.js:45:5)
at Stream.end (/Users/user/code/jetpack/node_modules/through/index.js:15:35)
at _end (/Users/user/code/jetpack/node_modules/through/index.js:65:9)
at Stream.stream.end (/Users/user/code/jetpack/node_modules/through/index.js:74:5)
at DestroyableTransform.onend (/Users/user/code/jetpack/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:523:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Any thoughts on why this may happen?
The text was updated successfully, but these errors were encountered:
On further investigation, I found that my one of my attempts to rectify another issue using yarn upgrade resulted in a modified yarn.lock that was causing the reported issue. After reverting yarn.lock, and to the committed version in master, when I tried to build, I was getting:
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Based on the instructions found here, I issued yarn config set ignore-engines true before firing yarn build. Now, the build is failing just as initially reported:
[12:51:21] Dashboard RTL CSS finished.
[12:51:22] DOPS Components RTL CSS finished.
[12:51:22] Building static HTML from built JS…
[BABEL] Note: The code generator has deoptimised the styling of "/Users/user/code/jetpack/_inc/build/static.js" as it exceeds the max of "500KB".
fs.js:159
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:159:9)
at Object.fs.writeFile (fs.js:1278:14)
at Stream.<anonymous> (/Users/user/code/jetpack/gulpfile.babel.js:256:9)
at Stream.emit (events.js:187:15)
at drain (/Users/user/code/jetpack/node_modules/through/index.js:34:23)
at Stream.stream.queue.stream.push (/Users/user/code/jetpack/node_modules/through/index.js:45:5)
at Stream.end (/Users/user/code/jetpack/node_modules/through/index.js:15:35)
at _end (/Users/user/code/jetpack/node_modules/through/index.js:65:9)
at Stream.stream.end (/Users/user/code/jetpack/node_modules/through/index.js:74:5)
at DestroyableTransform.onend (/Users/user/code/jetpack/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:523:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Uh oh!
There was an error while loading. Please reload this page.
My Environment
Steps to reproduce the issue
I'm trying to get Jetpack up using Docker. When I issued
yarn docker:up
, the containers started and WP was accessible. When I accessed the Jetpack menu inwp-admin
, I received the error:As instructed, I did
yarn distclean && yarn build
, which resulted in this error for me:Any thoughts on why this may happen?
The text was updated successfully, but these errors were encountered: