saiarcot895 / chromium-ubuntu-build

Packaging files for building Chromium on Ubuntu
138 stars 32 forks source link

Build for 20.04 failing with TypeError: result.matchAll is not a function #119

Closed arkadius closed 3 years ago

arkadius commented 3 years ago

Build: https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-beta/+build/22043406 Stacktrace:

[6713/50717] ACTION //third_party/devtools-frontend/src/front_end/ui/components/expandable_list:devtools_entrypoint-bundle-rollup(//build/toolchain/linux:clang_x64)
FAILED: gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/expandable_list.js 
python3 ../../third_party/node/node.py ../../third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup --silent --config ../../third_party/devtools-frontend/src/scripts/build/rollup.config.js --input gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/expandable_list.prebundle.js --file gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/expandable_list.js --configDCHECK
Traceback (most recent call last):
  File "../../third_party/node/node.py", line 48, in <module>
    RunNode(sys.argv[1:])
  File "../../third_party/node/node.py", line 43, in RunNode
    raise RuntimeError('Command \'%s\' failed\n%s' % (' '.join(cmd), err))
RuntimeError: Command '/usr/bin/nodejs ../../third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup --silent --config ../../third_party/devtools-frontend/src/scripts/build/rollup.config.js --input gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/expandable_list.prebundle.js --file gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/expandable_list.js --configDCHECK' failed
[!] (plugin minify-html-template-literals) TypeError: result.matchAll is not a function
gen/third_party/devtools-frontend/src/front_end/ui/components/expandable_list/ExpandableList.js
TypeError: result.matchAll is not a function
    at Object.minifyHTML (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/node_modules/minify-html-literals/src/strategy.ts:145:41)
    at Object.minifyHTML (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/scripts/build/rollup.config.js:80:37)
    at templates.forEach.template (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/node_modules/minify-html-literals/src/minifyHTMLLiterals.ts:322:24)
    at Array.forEach (<anonymous>)
    at Object.minifyHTMLLiterals (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/node_modules/minify-html-literals/src/minifyHTMLLiterals.ts:297:13)
    at Object.transform (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/node_modules/rollup-plugin-minify-html-template-literals/dist/index.js:15:47)
    at Promise.resolve.then (/<<PKGBUILDDIR>>/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:20197:25)

Looks like it was used some old nodejs version for building of devtools components. Any chance to fix it?

arkadius commented 3 years ago

It's working now. Thanks for fix