@getflywheel/local Errors during build

We recently built an add-on for Local for VSCode and XDebug. When including @getflywheel/local in our code, we get the following errors on build -

node_modules/@getflywheel/local/main.d.ts:870:16 - error TS2304: Cannot find name ‘ConnectDirection’.
870 direction: ConnectDirection,

node_modules/@getflywheel/local/main.d.ts:871:21 - error TS2304: Cannot find name ‘FlywheelSite’.
871 flywheelSiteID: FlywheelSite[‘id’],

node_modules/@getflywheel/local/main.d.ts:872:18 - error TS2304: Cannot find name ‘flywheelSiteEnvironment’.
872 environment: flywheelSiteEnvironment,

I searched through all of the included node modules (same ones as the Phpstorm + XDebug add-on that @clay made) and couldn’t find reference to ConnectDirection, FlywheelSite, or flywheelSiteEnvironment. Has anyone else run into this issue?

Looks like running yarn upgrade fixed the issue. The add-on is up-to-date and working fine now. Yay!

1 Like