-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to tic in CDK project #79
Comments
Hi @ksco92, Thank you for reporting the issue. Are you able to provide a Code Sandbox or Replit with a minimal reproducible example? I am unable to recreate it myself. For example, you can create a fork of: I've basically copied your src/index.ts const importSync = require('import-sync');
const { sum } = importSync('./example.ts');
console.log('1 + 1 =', sum(1, 1)); src/example.ts export const sum = (a: number, b: number) => a + b; and it ran without errors. Also tagging @pimterry if you have any ideas. |
The file referenced here ( I think that's the problem - if these types are intended to be used downstream, they should be included in the public package. I'm not sure why different TypeScript configurations are passing/failing here, but including that file (or changing the setup so it's no longer referenced) seems like a sensible fix regardless. |
I have an AWS CDK project which fails to
tsc
because of this:My
tsconfig.json
:My
package.json
:In my code I am simply doing:
And it works, I can even do a
cdk synth
and deploy, however tsc fails. Am I doing something wrong here?The text was updated successfully, but these errors were encountered: