thousands-hairdresser-72380
09/11/2022, 8:42 PMzod
in a magic function but am running into this error:
TSError: ⨯ Unable to compile TypeScript:
src/index.ts(286,14): error TS2589: Type instantiation is excessively deep and possibly infinite.
It appears to be due to the bundled typescript that comes with Pulumi being incompatible with the latest version of zod.
I’ve attempted to disable the built-in typescript runtime by adding the following to Pulumi.yaml
runtime:
name: nodejs
options:
typescript: false
But now when I run pulumi up
I get
import * as pulumi from '@pulumi/pulumi'
^^^^^^
SyntaxError: Cannot use import statement outside a module
Any ideas as to how I can get around this?
I’ve tried
1. creating a new typescript config with npx tsc --init
and that doesn’t seem to help.
2. Setting "type": "module"
in package.json
3. modifying the target
, esModuleInterop
, and a few other things.
a. (trying anything haha)
4. Searching through the Pulumi
a. Slack Logs
b. Github Issues
c. Source Code
Any help would be greatly appreciated.
Thank you!worried-rain-74420
09/12/2022, 1:52 PMthousands-hairdresser-72380
09/12/2022, 1:53 PMorange-policeman-59119
10/05/2022, 11:18 PMthousands-hairdresser-72380
10/06/2022, 12:59 PM