googledatastudio / tooling

Apache License 2.0
68 stars 30 forks source link

For anyone trying to follow the Looker Studio Local Development Guide & Codelab #381

Open brianbuie opened 1 year ago

brianbuie commented 1 year ago

https://developers.google.com/looker-studio/visualization/local-dev

This is what worked for me (macOS 13.4)

nvm use 12

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:

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:

    "@google/dscc": "0.3.8",
    "@google/dscc-scripts": "1.0.15"

I deleted node_modules and yarn.lock, and then npm installed again.

npm install

And then the dev server finally worked for me.

Hope this helps.

🤙