There appears to be an issue with the different versions of dscc-gen and dscc-scripts available on npm and the format they're expecting the generated project to have. I tried a few different versions before this worked:
npx @google/dscc-gen@2.0.27 viz
it still installed the the newer dscc-gen and dscc-scripts packages, but after changing package.json to use the absolute versions:
https://developers.google.com/looker-studio/visualization/local-dev
This is what worked for me (macOS 13.4)
v12.22.12 (npm v6.14.16) is what I had.
There appears to be an issue with the different versions of dscc-gen and dscc-scripts available on npm and the format they're expecting the generated project to have. I tried a few different versions before this worked:
it still installed the the newer dscc-gen and dscc-scripts packages, but after changing package.json to use the absolute versions:
I deleted node_modules and yarn.lock, and then npm installed again.
And then the dev server finally worked for me.
Hope this helps.
🤙