SST is not defined WSL

I am following tutorial Next.js on AWS with SST | SST
under WSL on windows, I made it work once, but after I pulled my project and tried to make it work again with npx sst dev, I see an error ReferenceError: sst is not defined although SST is installed and project is initialized with npx sst@latest init.
I tried creating project from scratch following the tutorial, wiping cached data in the subsystem, but I still keep getting this error

time=2025-05-23T19:23:48.210+02:00 level=INFO msg="checking for pulumi" path=/home/user1/.config/sst/bin/pulumi
time=2025-05-23T19:23:48.850+02:00 level=INFO msg="checking for bun" path=/home/user1/.config/sst/bin/bun
time=2025-05-23T19:23:48.857+02:00 level=INFO msg="initializing project" version=3.16.0
time=2025-05-23T19:23:48.858+02:00 level=INFO msg="esbuild building" out=/home/user1/aws-nextjs/.sst/platform/sst.config.1748021028858.mjs
time=2025-05-23T19:23:48.870+02:00 level=INFO msg="esbuild built" outfile=/home/user1/aws-nextjs/.sst/platform/sst.config.1748021028858.mjs
time=2025-05-23T19:23:48.871+02:00 level=INFO msg="evaluating config"
time=2025-05-23T19:23:49.009+02:00 level=INFO msg="config evaluated"
time=2025-05-23T19:23:49.009+02:00 level=ERROR msg="exited with error" err="Error evaluating config: exit status 1\nfile:///home/user1/aws-nextjs/.sst/platform/sst.config.1748021028858.mjs:13\nvar bucket = new sst.aws.Bucket(\"MyBucket1\", {\n             ^\n\nReferenceError: sst is not defined\n    at file:///home/user1/aws-nextjs/.sst/platform/sst.config.1748021028858.mjs:13:14\n    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)\n    at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)\n    at async loadESM (node:internal/process/esm_loader:34:7)\n    at async handleMainPromise (node:internal/modules/run_main:106:12)\n\nNode.js v18.19.1\n"
✕  Unexpected error occurred. Please run with --print-logs or check .sst/log/sst.log if available.