question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SanityContent and SanityImage are not auto-imported

See original GitHub issue

Hi! I’ve just updated to v0.4.0 and the helpers are no longer globally imported even though that I set components: true. Do I need to write more config for it to work?

Reproduction: https://github.com/mornir/movies-web

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
dylanmcgowancommented, Jan 18, 2021

@danielroe thanks for the prompt fix, no more nuxt error!

0reactions
danielroecommented, Jan 18, 2021

@dylanmcgowan apologies! would you check that this issue is solved for you in 0.6.1?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SanityContent and SanityImage are not auto-imported #51
Hi! I've just updated to v0.4.0 and the helpers are no longer globally imported even though that I set components: true.
Read more >
Top 5 @sanity/image-url Code Examples - Snyk
Learn more about how to use @sanity/image-url, based on @sanity/image-url code examples created from the most popular ways it is used in public...
Read more >
Image-url builder (JS) - Sanity.io
Quickly generate image urls from Sanity image records. This helper will by default respect any crops/hotspots specified in the Sanity content provided to...
Read more >
@sanity/image-url examples - CodeSandbox
Learn how to use @sanity/image-url by viewing and forking example apps that make use of @sanity/image-url on CodeSandbox.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found