esbuild was incorrectly missing as dev dependecy, added
package eslint-config-airbnb is still not accepting eslint 8.x, but its ok if installed with npm install --force
anyhow, for now i've downgraded to eslint 7.32.0 since i'm not using any eslint v8 specific features
While building custom tfjs from this repo on Windows subsytem for Linux (Ubuntu 20.04.3 LTS) I encounter a error messages logged below.
npm run build: Esbuild error log
```bash > npm run build > @vladmandic/tfjs@3.11.0-20211102 build > npm run download && npm run patch && npm run build-wasm && npm run build-tfjs > @vladmandic/tfjs@3.11.0-20211102 download > scripts/download.sh Updating TFJS sources to latest version Saved working directory and index state WIP on master: 69858e1 webgpu: Refactor some utilities (#5785) remote: Enumerating objects: 29, done. remote: Counting objects: 100% (29/29), done. remote: Compressing objects: 100% (9/9), done. remote: Total 18 (delta 15), reused 9 (delta 9), pack-reused 0 Unpacking objects: 100% (18/18), 2.67 KiB | 248.00 KiB/s, done. From https://github.com/tensorflow/tfjs 69858e1..5e6e49a master -> origin/master Updating 69858e1..5e6e49a Fast-forward tfjs-converter/python/BUILD | 2 -- tfjs-converter/python/requirements.txt | 2 -- tfjs-converter/python/tensorflowjs/converters/BUILD | 1 + tfjs-node/scripts/deps-constants.js | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) Current branch master is up to date. > @vladmandic/tfjs@3.11.0-20211102 patch > scripts/prepare.sh Detected version: 3.11.0-20211107 Creating op list imports > @vladmandic/tfjs@3.11.0-20211102 build-wasm > scripts/build-wasm.sh Found bazel 4.2.1 Building: tfjs-backend-wasm Starting local Bazel server and connecting to it... INFO: Analyzed target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm (230 packages loaded, 30092 targets configured). INFO: Found 1 target... Target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm up-to-date: wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.wasm.map wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.js.mem wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.fetch.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.worker.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.data wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.js.symbols wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.wasm.debug.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm/tfjs-backend-wasm.html INFO: Elapsed time: 44.092s, Critical Path: 1.86s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action Building: tfjs-backend-wasm-simd INFO: Build option --copt has changed, discarding analysis cache.INFO: Analyzed target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm-simd (0 packages loaded, 30777 targets configured). INFO: Found 1 target... Target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm-simd up-to-date: wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.wasm.map wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.js.mem wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.fetch.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.worker.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.data wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.js.symbols wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.wasm.debug.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-simd/tfjs-backend-wasm-simd.html INFO: Elapsed time: 11.516s, Critical Path: 1.04s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action Building: tfjs-backend-wasm-threaded-simd INFO: Build option --copt has changed, discarding analysis cache.INFO: Analyzed target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm-threaded-simd (0 packages loaded, 30777 targets configured). INFO: Found 1 target... Target //tfjs-backend-wasm/src/cc:tfjs-backend-wasm-threaded-simd up-to-date: wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.wasm.map wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.js.mem wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.fetch.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.worker.js wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.data wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.js.symbols wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.wasm.debug.wasm wasm-out/bin/tfjs-backend-wasm/src/cc/tfjs-backend-wasm-threaded-simd/tfjs-backend-wasm-threaded-simd.html INFO: Elapsed time: 10.789s, Critical Path: 1.30s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action Copying WASM binaries to dist Patching loaders > @vladmandic/tfjs@3.11.0-20211102 build-tfjs > node scripts/build-tfjs.js node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'esbuild' Require stack: - /home/wespazjan/dev/tfjs-custom/scripts/build-tfjs.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.npm install: eslint version problem
```bash > npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @vladmandic/tfjs@3.11.0-20211102 npm ERR! Found: eslint@8.2.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^8.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer eslint@"^5.16.0 || ^6.8.0 || ^7.2.0" from eslint-config-airbnb-base@14.2.1 npm ERR! node_modules/eslint-config-airbnb-base npm ERR! dev eslint-config-airbnb-base@"^14.2.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. ```downgrading eslint to ^7.2.0 in package.json resulted in fixing the issue.