Comments (3)
were you able to get past this, I'm currently stuck at the same place.
from aws-rails-provisioner.
Just ran into this too.
0 info it worked if it ends with ok
1 verbose cli [ '/Users/x/.nvm/versions/node/v10.16.0/bin/node',
1 verbose cli '/Users/x/.nvm/versions/node/v10.16.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--verbose' ]
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: /Users/x/.nvm/versions/node/v10.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/x/cdk-sample/node_modules/.bin:/Users/x/.nvm/versions/node/v10.16.0/bin:/Users/x/.rvm/gems/ruby-2.6.3/bin:/Users/x/.rvm/gems/ruby-2.6.3@global/bin:/Users/x/.rvm/rubies/ruby-2.6.3/bin:/Users/x/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin
9 verbose lifecycle [email protected]~build: CWD: /Users/x/cdk-sample
10 silly lifecycle [email protected]~build: Args: [ '-c', 'tsc' ]
11 silly lifecycle [email protected]~build: Returned: code: 2 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `tsc`
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.<anonymous> (/Users/x/.nvm/versions/node/v10.16.0/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.<anonymous> (/Users/x/.nvm/versions/node/v10.16.0/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 /Users/x/cdk-sample
16 verbose Darwin 19.0.0
17 verbose argv "/Users/x/.nvm/versions/node/v10.16.0/bin/node" "/Users/x/.nvm/versions/node/v10.16.0/bin/npm" "run" "build" "--verbose"
18 verbose node v10.16.0
19 verbose npm v6.14.5
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build: `tsc`
22 error Exit status 2
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 [ 2, true ]
Running tsc
in the cdk-sample dir gives more details. In my case, I had copied the db backup options from the docs which don't line up with the props in the cdk:
lib/web-fargate-stack.ts:54:17 - error TS2322: Type '{ retentionDays: number; preferred_window: string; }' is not assignable to type 'BackupProps'.
Object literal may only specify known properties, and 'retentionDays' does not exist in type 'BackupProps'.
54 retentionDays: 7,
~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-rds/lib/cluster.d.ts:49:14
49 readonly backup?: BackupProps;
~~~~~~
The expected type comes from property 'backup' which is declared here on type 'DatabaseClusterProps'
Found 1 error.
node_modules/@aws-cdk/aws-rds/lib/cluster.d.ts
export interface BackupProps {
/**
* How many days to retain the backup
*/
readonly retention: Duration;
/**
* A daily time range in 24-hours UTC format in which backups preferably execute.
*
* Must be at least 30 minutes long.
*
* Example: '01:00-02:00'
*
* @default - a 30-minute window selected at random from an 8-hour block of
* time for each AWS Region. To see the time blocks available, see
* https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow
*/
readonly preferredWindow?: string;
}
Wasn't able to work around it so I just removed the backup config and the build succeeded.
OP's issue may have a different cause but if anyone else encounters this the tsc
trick will probably give more info.
from aws-rails-provisioner.
Hey - I'm sorry this is very late here; we've been short on hands the last 6 months. I've started picking up these issues. I wasn't the original author of this code but I have been working through it to understand it better. Did you use --with-cicd
at some point? I ran into this same issue but was able to get past it without providing that flag. I had to scrap the cdk-sample directory and the package lock file to try again. I will investigate this.
from aws-rails-provisioner.
Related Issues (19)
- rails console HOT 5
- Improvement ideas
- Getting `ENAMETOOLONG: name too long` when deploying HOT 3
- ClusterParameterGroup no longer exists HOT 9
- Numerous file errors upon build HOT 1
- ENAMETOOLONG Error on deploy HOT 2
- NPM build failed HOT 8
- Region not provided HOT 2
- Typescript error HOT 9
- Error when deploying Rails 6 app
- Cannot ask a question in stack overflow using tag aws-rails-provisioner (1500 reputation needed) HOT 2
- npm ERR! [email protected] build: `tsc` HOT 3
- Support Test Case generation for CDK stacks
- cdk bootstrap HOT 2
- aurora-postgresql DBParameterGroupFamily error HOT 3
- aws-rails-provisioner ignoring --profile option HOT 3
- CdkSampleInitStack was rollbacked.
- Defining other AWS Services
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-rails-provisioner.