# Cannot tsc on template "aws-nodejs-typescript"

**URL:** <https://forum.serverless.com/t/cannot-tsc-on-template-aws-nodejs-typescript/17138>\
**Category:** Serverless Framework\
**Created:** [May 9, 2022, 11:32am UTC](https://forum.serverless.com/t/cannot-tsc-on-template-aws-nodejs-typescript/17138 "2022-05-09T11:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trixobird](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/trixobird/32/6518_2.png) [@trixobird](https://forum.serverless.com/u/trixobird)\
**Post date:** [May 9, 2022, 11:32am UTC](https://forum.serverless.com/t/cannot-tsc-on-template-aws-nodejs-typescript/17138/1 "2022-05-09T11:32:27Z")

</div>

Steps to reproduce:  
sls create -t aws-nodejs-typescript some-folder  
cd some-folder  
npm -i  
tsc

Expected result:  
success

Real result:  
node\_modules/@serverless/typescript/index.d.ts:1286:7 - error TS2411: Property ‘“Fn::Transform”’ of type ‘{ Name: string; Parameters?: { [k: string]: unknown; }; }’ is not assignable to ‘string’ index type ‘{ Type: string; Properties?: { [k: string]: unknown; }; CreationPolicy?: { [k: string]: unknown; }; DeletionPolicy?: string; DependsOn?: AwsResourceDependsOn; Metadata?: { [k: string]: unknown; }; UpdatePolicy?: { …; }; UpdateReplacePolicy?: string; Condition?: string; }’

Temp solution:  
Open the node\_modules/@serverless/typescript/index.d.ts file and delete  
“Fn::Transform”?: {  
Name: string;  
Parameters?: {  
[k: string]: unknown;  
};  
};
