good-idea / sane-shopify

MIT License
212 stars 15 forks source link

Unable to generate types after installing #177

Open elliotwestlake opened 3 years ago

elliotwestlake commented 3 years ago

Describe the bug When trying to generate types after installing sane-shopify I'm now getting the following error:

yarn run v1.22.10
$ sanity-codegen
Error: Cannot find module 'part:@sanity/components/tooltip'
Require stack:
- /Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/ChangeBar.js
- /Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/ChangeIndicator.js
- /Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/index.js
- /Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sane-shopify/sanity-plugin/dist/sanity-plugin.cjs.development.js
- /Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sane-shopify/sanity-plugin/dist/index.js
- /Users/elliot.westlake/github/budding-baskets/studio/schemas/schema.js
- /Users/elliot.westlake/github/budding-baskets/node_modules/sanity-codegen/cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/ChangeBar.js:10:16)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Module._compile (/Users/elliot.westlake/github/budding-baskets/node_modules/pirates/lib/index.js:99:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Object.newLoader [as .js] (/Users/elliot.westlake/github/budding-baskets/node_modules/pirates/lib/index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:812:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/ChangeBar.js',
    '/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/ChangeIndicator.js',
    '/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sanity/base/lib/change-indicators/index.js',
    '/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sane-shopify/sanity-plugin/dist/sanity-plugin.cjs.development.js',
    '/Users/elliot.westlake/github/budding-baskets/studio/node_modules/@sane-shopify/sanity-plugin/dist/index.js',
    '/Users/elliot.westlake/github/budding-baskets/studio/schemas/schema.js',
    '/Users/elliot.westlake/github/budding-baskets/node_modules/sanity-codegen/cli.js'
  ]
}
error Command failed with exit code 1.