-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi @dalen !
As described in my post in #567 , I'm not at all famillar with npm.
Here you also see exactly what steps I did to set up my build box.
# npm -v
6.14.8
I saw in issue #611 that one should probably run 'npm run build'. Perhaps this will build stuff and generate a Gruntfile?
Anyhow, I ran the command and get an error:
# cd /root/git/puppetexplorer/
# npm run build
> puppetexplorer@3.0.0 build /root/git/puppetexplorer
> webpack --mode=production
Hash: 52596a9f6e0791ae50ee
Version: webpack 4.44.1
Time: 24490ms
Built at: 09/08/2020 4:23:30 PM
1 asset
Entrypoint main = main.js
[8] ./node_modules/reactstrap/dist/reactstrap.es.js + 5 modules 202 KiB {0} [built]
| 6 modules
[15] ./src/PuppetDB.ts 2.44 KiB {0} [built]
[25] ./node_modules/react-router-dom/es/index.js + 29 modules 76.8 KiB {0} [built]
| 30 modules
[28] (webpack)/buildin/global.js 472 bytes {0} [built]
[34] ./node_modules/react-icons/fa/index.esm.js + 4 modules 1.24 MiB {0} [built]
| 5 modules
[94] ./src/modules/reports/helpers.tsx 1.01 KiB {0} [built]
[120] (webpack)/buildin/module.js 497 bytes {0} [built]
[130] ./node_modules/recharts/es6/index.js + 216 modules 841 KiB {0} [built]
| 217 modules
[245] ./src/index.tsx 420 bytes {0} [built]
[253] ./src/App.tsx 6.26 KiB {0} [built] [1 error]
[256] ./src/modules/dashboard/DashBoard.tsx 1.07 KiB {0} [built]
[259] ./src/PuppetDB/FactPath.ts 3.59 KiB {0} [built]
[372] ./src/modules/reports/index.ts 550 bytes {0} [built]
[572] ./src/util.ts 741 bytes {0} [built]
[582] ./src/Config.ts 1.37 KiB {0} [built]
+ 609 hidden modules
ERROR in /root/git/puppetexplorer/src/App.tsx
./src/App.tsx
[tsl] ERROR in /root/git/puppetexplorer/src/App.tsx(40,35)
TS2345: Argument of type 'string | string[] | ParsedQs | ParsedQs[] | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
ERROR in /root/git/puppetexplorer/src/components/PaginatedList.tsx
./src/components/PaginatedList.tsx
[tsl] ERROR in /root/git/puppetexplorer/src/components/PaginatedList.tsx(102,14)
TS2322: Type '{ total: number; serverUrl: string; }' is not assignable to type 'OriginalProps'.
'{ total: number; serverUrl: string; }' is assignable to the constraint of type 'OriginalProps', but 'OriginalProps' could be instantiated with a different subtype of constraint '{}'.
ERROR in /root/git/puppetexplorer/src/modules/events/components/EventsContainer.tsx
./src/modules/events/components/EventsContainer.tsx
[tsl] ERROR in /root/git/puppetexplorer/src/modules/events/components/EventsContainer.tsx(62,35)
TS2345: Argument of type 'string | string[] | ParsedQs | ParsedQs[] | undefined' is not assignable to parameter of type 'string | number | Date'.
Type 'undefined' is not assignable to type 'string | number | Date'.
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 768 bytes {0} [built]
[2] (webpack)/buildin/global.js 472 bytes {0} [built]
[3] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! puppetexplorer@3.0.0 build: `webpack --mode=production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the puppetexplorer@3.0.0 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/2020-09-08T16_23_30_744Z-debug.log
Let me know if you need more information or if I did something wrong.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels