Error generate typescript code after defining event sourced entity

Generated a test project using typescript code generator and get this message

src/index.ts:7:33 - error TS2307: Cannot find module '..libgeneratedindex' or its corresponding type declarations.

7 import generatedComponents from "..\lib\generated\index";

src/index.ts:14:30 - error TS7006: Parameter 'component' implicitly has an 'any' type.

14 generatedComponents.forEach((component) => {

When we do npm run build to generate source code.

I believe you may be facing the issue reported here. If so, you may be able to work around it by replacing the \s with /s as described there.

Hey thanks but npm build keeps overwriting the lib/generated/index.ts so workaround will not work.

For the record, this issue should be fixed now on JS SDK 1.0.3.