Closed TohoMonster closed 4 years ago
@TohoMonster Running into the same issue. Did you resolve this?
To be honest, this was way too long ago for me to remember.
I had success following: https://www.elegantthemes.com/documentation/developers/how-to-create-a-divi-builder-module/
I think there was something simple on my end. Looking at the plugins directory, I did manage to generate several extensions from this.
I think I had to go back and reimplement everything exactly as called out in the tutorials.
Make sure the dev environment is correctly installed and running: https://www.elegantthemes.com/documentation/developers/divi-development-environment/
Then redo the steps listed in the tutorial: https://www.elegantthemes.com/documentation/developers/divi-development-environment/
Don't miss a step. Verify that your version of Node is current.
But again that was a long time ago. I don't recall if I needed Docker running or not. But it was something simple like that.
I'm focusing on Python development now. But I'll update you if I remember anything.
@TomTilly Were you able to get this to work? I've got similar issues and the build always fails. I'm on a Mac
@ajaydsouza No, but I didn't troubleshoot that much because I didn't have the time. I remember that I tried setting up a local dev environment with Local by Flywheel though, while their instructions were for Docker. If I were to do it again, I'd follow their steps exactly and just use Docker. If you haven't tried that, that might be worth a shot.
@TomTilly
I was able to fix this by downgrading Node down to a 14x version which is LTS. I had Brew install Node which was the latest version (v16) and downgrading to v14 worked.
Problem Description
Build errors when running "npx create-divi-extension my-extension" as detailed on https://www.elegantthemes.com/documentation/developers/create-divi-extension/.
The issue seems to be with
I have verified that I am using the latest versions of node.js, yaml, and XCode.
Steps To Reproduce
The error seems to be coming from the fsevents module.
I tried opening an issue on www.elegantthemes.com but was told to open an issue here.
What is the expected time for resolution on issues here?
Screenshot and/or gif
Here is the output of the
Last login: Sat Jun 27 08:35:51 on console
The default interactive shell is now zsh. To update your account to use zsh, please run
chsh -s /bin/zsh
. For more details, please visit https://support.apple.com/kb/HT208050.Johns-MacBook-Pro:BlankWordpress john$ cd wp-content/plugins/
npx: installed 174 in 7.167s warning divi-scripts > extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin warning divi-scripts > fsevents@1.1.3: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > @babel/runtime > core-js@2.6.11: 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. warning divi-scripts > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > divi-dev-utils > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > grunt-contrib-compress > iltorb@1.3.10: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb warning divi-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning divi-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > fsevents > node-pre-gyp > request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > grunt-contrib-compress > iltorb > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > fsevents > node-pre-gyp > hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > fsevents > node-pre-gyp > request > hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning divi-scripts > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. warning divi-scripts > jest > jest-cli > jest-haste-map > sane > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > svgr > h2x-core > h2x-parse > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > jest > jest-cli > jest-runtime > babel-core > babel-runtime > core-js@2.6.11: 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. warning divi-scripts > jest > jest-cli > jest-runtime > babel-core > babel-register > core-js@2.6.11: 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. warning divi-scripts > fsevents > node-pre-gyp > hawk > hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > fsevents > node-pre-gyp > hawk > sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > fsevents > node-pre-gyp > hawk > sntp > hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > fsevents > node-pre-gyp > hawk > cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > fsevents > node-pre-gyp > hawk > boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > fsevents > node-pre-gyp > hawk > cryptiles > boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > fsevents > node-pre-gyp > hawk > boom > hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). warning divi-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart() warning divi-scripts > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning divi-scripts > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning "divi-scripts > babel-plugin-named-asset-import@1.0.0-next.fb6e6f70" has incorrect peer dependency "@babel/core@^7.1.0". warning "divi-scripts > babel-preset-divi-extension > babel-plugin-transform-dynamic-import > @babel/plugin-syntax-dynamic-import@7.0.0-beta.34" has incorrect peer dependency "@babel/core@7.0.0-beta.34". warning Error running install script for optional dependency: "/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents: Command failed. Exit code: 1 Command: node install Arguments: Directory: /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.6.39 node-pre-gyp info using node@12.18.2 | darwin | x64 node-pre-gyp info check checked for \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" (not found) node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@12.18.2 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@12.18.2 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http Connection closed while downloading tarball file gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gypgyp infoinfo okok
gyp info it worked if it ends with ok gypgyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info spawn /usr/bin/python gyp info spawn /usr/bin/python gyp info spawn args [ gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/gyp/gyp_main.py', gypgyp info spawn args [ gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/john/.node-gyp/12.18.2/include/node/common.gypi', gyp info info spawn args '-I', gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/addon.gypi', gyp info spawn argsspawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/john/.node-gyp/12.18.2', gyp info spawn args '-Dnode_gyp_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/john/.node-gyp/12.18.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] '-I', gyp info spawn args '/Users/john/.node-gyp/12.18.2/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/john/.node-gyp/12.18.2', gyp info spawn args '-Dnode_gyp_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/john/.node-gyp/12.18.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info ok gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] gyp info ok SOLINK_MODULE(target) Release/.node gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o CXX(target) Release/obj.target/fse/fsevents.o ../fsevents.cc../fsevents.cc:50:50:32:: error: no template named 'Handle' in namespace 'v8'32 : error: no template named 'Handle' in namespace 'v8' static void Initialize(v8::Handle exports);