Hi, Im trying to build this app but it errors out.
my system
Fresh AWS AMI RH 8.5
node
[root@ip-10-177-22-152 extension-single-checkbox-parameters]# npm install
[email protected] postinstall /opt/tableau/extension-single-checkbox-parameters/node_modules/core-js
node scripts/postinstall || echo "ignore"
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 -)
[email protected] postinstall /opt/tableau/extension-single-checkbox-parameters/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js
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"})
added 1704 packages from 917 contributors and audited 1773 packages in 13.027s
13 packages are looking for funding
run npm fund
for details
found 351 vulnerabilities (45 low, 136 moderate, 130 high, 40 critical)
run npm audit fix
to fix them, or npm audit
for details
[root@ip-10-177-22-152 extension-single-checkbox-parameters]# npm run build
[email protected] build /opt/tableau/extension-single-checkbox-parameters
rm -rf docs && react-scripts-ts build && mv build docs
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'enhanced-resolve/lib/createInnerCallback'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/opt/tableau/extension-single-checkbox-parameters/node_modules/tsconfig-paths-webpack-plugin/lib/plugin.js:8:29)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/opt/tableau/extension-single-checkbox-parameters/node_modules/tsconfig-paths-webpack-plugin/index.js:1:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: rm -rf docs && react-scripts-ts build && mv build docs
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-09-05T21_57_44_002Z-debug.log
The debug log mentioned ^^ says
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]prebuild: [email protected]
6 info lifecycle [email protected]build: [email protected]
7 verbose lifecycle [email protected]build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/tableau/extension-single-checkbox-parameters/node_modules/.bin:/root/.yarn/bin:/root/.config/yarn/global/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
9 verbose lifecycle [email protected]build: CWD: /opt/tableau/extension-single-checkbox-parameters
10 silly lifecycle [email protected]build: Args: [ '-c',
10 silly lifecycle 'rm -rf docs && react-scripts-ts build && mv build docs' ]
11 silly lifecycle [email protected]build: Returned: code: 1 signal: null
12 info lifecycle [email protected]build: Failed to exec build script
13 verbose stack Error: [email protected] build: rm -rf docs && react-scripts-ts build && mv build docs
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /opt/tableau/extension-single-checkbox-parameters
16 verbose Linux 4.18.0-477.21.1.el8_8.x86_64
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v10.24.0
19 verbose npm v6.14.11
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: rm -rf docs && react-scripts-ts build && mv build docs
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
/root/.npm/_logs/2023-09-05T21_57_44_002Z-debug.log (END)
I tried a node install enhanced-resolve ( what it says is missing ) but it didn't change the result when I compiled again.
Thoughts ?