guzmonne / organizations-stack

AWS Organizations constructs. Based on aws-bootstrap-kit.
Apache License 2.0
5 stars 3 forks source link

npm run build error #1

Open jmjava opened 3 years ago

jmjava commented 3 years ago

I am probably doing something wrong with my setup.

node_modules/@types/sinon/node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts:11:28 - error TS2304: Cannot find name 'queueMicrotask'.

11 queueMicrotask: typeof queueMicrotask;


verbose Linux 5.4.72-microsoft-standard-WSL2
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v10.19.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 2
22 error organizations-stack@0.1.0 build: `tsc`
22 error Exit status 2

Found this from googling but it didn't help:

https://stackoverflow.com/questions/67761159/fake-timers-7-1-x-compile-error-cannot-find-name-queuemicrotask
jmjava commented 3 years ago

changed the package.json and now it appears to be compiling

{ "name": "organizations-stack", "version": "0.1.0", "bin": { "organizations": "bin/organizations.js" }, "scripts": { "build": "tsc", "watch": "tsc -w", "test": "npx jest", "cdk": "cdk", "organizations:synth": "cdk synth --app='npx ts-node --prefer-ts-exts bin/organizations.ts'", "organizations:diff": "cdk diff --app='npx ts-node --prefer-ts-exts bin/organizations.ts'" }, "devDependencies": { "@aws-cdk/assert": "^1.118.0", "@types/aws-lambda": "^8.10.82", "@types/jest": "^26.0.24", "@types/jsforce": "^1.9.34", "aws-cdk": "1.118.0", "aws-sdk": "^2.970.0", "aws-sdk-mock": "^5.2.2", "jest": "^26.6.3", "ts-jest": "^26.5.6", "ts-node": "^9.0.0", "typescript": "~3.9.7", "@sinonjs/fake-timers": "^6.0.1", "@types/sinonjs__fake-timers": "^6.0.3", "@types/sinon": "^7.0.1" }, "dependencies": { "@aws-cdk/aws-apigateway": "^1.118.0", "@aws-cdk/aws-codecommit": "^1.118.0", "@aws-cdk/aws-codepipeline": "^1.118.0", "@aws-cdk/aws-codepipeline-actions": "^1.118.0", "@aws-cdk/aws-dynamodb": "^1.118.0", "@aws-cdk/aws-iam": "^1.118.0", "@aws-cdk/aws-lambda": "^1.118.0", "@aws-cdk/aws-sns": "1.118.0", "@aws-cdk/aws-sns-subscriptions": "1.118.0", "@aws-cdk/aws-sqs": "1.118.0", "@aws-cdk/core": "^1.118.0", "@aws-cdk/pipelines": "^1.118.0", "array-unique": "^0.3.2" } }