How to get resource/variable running locally via vscode ?
I'm little confused with the setup and docs are not really helping with it.
8 Replies
if you want to run things fully locally, then you needto treat windmill api as an external api and provide WM_TOKEN and WM_BASE_URL
That should be mentionned in the docs in developping locally
i believe i have everything in place yet still.

i don't need to setup mock file right? that was kind a confused me in between.
you're using a mocked api
i just gave a try, here's updated screenshot of the code.

very same piece of code works in hosted UI when i try it.
did you pass WM_WORKSPACE ?
aaah
but you're using the vscode extension
so it's running locally, it's running on the remote
use 1.455.0
and verify that the variable actually exists on the workspace you're connected to
in vicecheq
client version right ?
import * as wmill from "npm:windmill-client@1.455.0"
nvm it's worked 🎊
i had typo in workspace name :S i wish the error was; (there's no such a workspace )