Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error while building a UI layer for MultiRegion workshop #303

Open
stanlk opened this issue Mar 16, 2021 · 1 comment
Open

An error while building a UI layer for MultiRegion workshop #303

stanlk opened this issue Mar 16, 2021 · 1 comment

Comments

@stanlk
Copy link

stanlk commented Mar 16, 2021

While I am trying to build UI by running npm run build, I got next error:

`Admin:~/environment/aws-serverless-workshops/MultiRegion/2_UI (master) $ npm run build

[email protected] build /home/ec2-user/environment/aws-serverless-workshops/MultiRegion/2_UI
ng build

Date: 2021-03-16T23:51:55.651Z
Hash: ba8c5a58c273efec0b60
Time: 10983ms
chunk {main} main.js, main.js.map (main) 659 bytes [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 714 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 606 kB [initial] [rendered]

ERROR in node_modules/@types/node/assert.d.ts(2,68): error TS1144: '{' or ';' expected.
node_modules/@types/node/assert.d.ts(35,68): error TS1144: '{' or ';' expected.
node_modules/@types/node/assert.d.ts(44,94): error TS1144: '{' or ';' expected.
node_modules/@types/node/assert.d.ts(44,101): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(44,104): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(46,98): error TS1144: '{' or ';' expected.
node_modules/@types/node/assert.d.ts(46,105): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(46,108): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(54,47): error TS1144: '{' or ';' expected.
node_modules/@types/node/assert.d.ts(54,53): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(54,56): error TS1005: ';' expected.
node_modules/@types/node/assert.d.ts(81,61): error TS1005: ';' expected.
node_modules/@types/node/base.d.ts(10,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/base.d.ts(11,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/base.d.ts(12,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/base.d.ts(13,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/ts3.6/base.d.ts(10,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/ts3.6/base.d.ts(11,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/ts3.6/base.d.ts(12,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/ts3.6/base.d.ts(13,1): error TS1084: Invalid 'reference' directive syntax.
node_modules/@types/node/util.d.ts(134,24): error TS1144: '{' or ';' expected.
node_modules/@types/node/util.d.ts(135,13): error TS1005: '(' expected.
node_modules/@types/node/util.d.ts(135,23): error TS1005: ',' expected.
node_modules/@types/node/util.d.ts(138,13): error TS1005: '(' expected.
node_modules/@types/node/util.d.ts(138,28): error TS1005: '(' expected.
node_modules/@types/node/util.d.ts(148,24): error TS1144: '{' or ';' expected.
node_modules/@types/node/util.d.ts(149,13): error TS1005: '(' expected.
node_modules/@types/node/util.d.ts(149,23): error TS1005: ',' expected.
node_modules/@types/node/util.d.ts(152,13): error TS1005: '(' expected.
node_modules/@types/node/util.d.ts(152,23): error TS1005: '(' expected.
node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
node_modules/rxjs/internal/types.d.ts(82,52): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(82,88): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(82,92): error TS1109: Expression expected.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: ng build
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! /home/ec2-user/.npm/_logs/2021-03-16T23_51_55_690Z-debug.log`

Node version: v8.12.0
TypeScript version: 2.7.2

@obthearchitect
Copy link

Try pinning your @type versions, and then rerun your build

    "@types/jasmine": "2.8.8",
    "@types/jasminewd2": "*",
    "@types/node": "10.9.4",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants