Npm run build Returns error

Hi,

Today I tried to install step by step (as I have done it many times before) fresh installation. Unfortunately I get error when I run “npm run build”. It seems that rollup-plugin-typescript doesn’t recognize type “never”:

[root@sb1 genieacs]# npm run build

> genieacs@1.2.0-beta.0 build /opt/genieacs
> node -r esm -r ts-node/register/transpile-only build/build

Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Error: @rollup/plugin-typescript TS2488: Type 'never' must have a '[Symbol.iterator]()' method that returns an iterator.
    at error (/opt/genieacs/node_modules/rollup/dist/shared/rollup.js:5174:30)
    at throwPluginError (/opt/genieacs/node_modules/rollup/dist/shared/rollup.js:17453:12)
    at Object.error (/opt/genieacs/node_modules/rollup/dist/shared/rollup.js:18072:24)
    at emitDiagnostic (/opt/genieacs/node_modules/@rollup/plugin-typescript/dist/index.js:415:17)
    at reportDiagnostics (/opt/genieacs/node_modules/@rollup/plugin-typescript/dist/index.js:423:9)
    at Array.forEach (<anonymous>)
    at emitFilesAndReportErrors (/opt/genieacs/node_modules/typescript/lib/typescript.js:105333:21)
    at Object.result.afterProgramCreate (/opt/genieacs/node_modules/typescript/lib/typescript.js:105503:13)
    at Object.afterProgramCreate (/opt/genieacs/node_modules/@rollup/plugin-typescript/dist/index.js:515:29)
    at synchronizeProgram (/opt/genieacs/node_modules/typescript/lib/typescript.js:105767:22)

I’m not sure but it seems just somekind of a type-o.

BR,
Janko Bajc

Fixed it.

After cloning with git you shouldn’t run npm update. just npm install and then npm run build.

BR,
Janko Bajc