Failing to run Hello Word example

Hello,

I’m trying to follow Coda Pack Hello World tutorial and when I try to run the npx coda execute pack.ts Hello "World" command I get the following error:

  errors: [
    {
      detail: undefined,
      id: '',
      location: [Object],
      notes: [Array],
      pluginName: '',
      text: 'Could not resolve "mersenne-twister"'
    },
    {
      detail: undefined,
      id: '',
      location: [Object],
      notes: [Array],
      pluginName: '',
      text: 'Could not resolve "@codahq/packs-sdk"'
    }
  ],

It also shows:

" The Yarn Plug’n’Play manifest forbids importing “@codahq/packs-sdk” here
because it’s not listed as a dependency of this package"

I’ve tried different variations of the tutorial but nothing seems to work.

Is this a known issue? Can someone help, please?

I’m running it on an Apple M1, Node 18 installed via nvm.

Hi @j9gns8x5c5 - Welcome to the Coda Community, and sorry for the slow reply. I’ve not seen those errors before, and mersenne-twister isn’t a package that is even related to Coda Packs, as far as I know. If you are using yarn instead of npm to manage the dependencies then you’ll want to do yarn add instead of npm install.