Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SanityContent and SanityImage are not auto-imported #51

Closed
mornir opened this issue Nov 16, 2020 · 5 comments
Closed

SanityContent and SanityImage are not auto-imported #51

mornir opened this issue Nov 16, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@mornir
Copy link
Contributor

mornir commented Nov 16, 2020

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

@mornir mornir added the bug Something isn't working label Nov 16, 2020
@mornir
Copy link
Contributor Author

mornir commented Nov 16, 2020

I see them during development in my .nuxt folder:
image

@mornir
Copy link
Contributor Author

mornir commented Nov 16, 2020

And I get this warning:
image

danielroe added a commit that referenced this issue Nov 18, 2020
danielroe added a commit that referenced this issue Jan 17, 2021
BREAKING CHANGES: import path for components has changed

* components are now imported as `@nuxtjs/sanity/sanity-content`
* closes #53, #51
* reverts commit b5abd8d
@dylanmcgowan
Copy link

dylanmcgowan commented Jan 18, 2021

SanityContent + SanityImage are not auto imported in v0.6.0 with the components set to true, this should be re opened..

And when you disable components: true, this is the nuxt error
Cannot find module '@nuxtjs/sanity/sanity-image'

What is a stable version that we should use?

@danielroe
Copy link
Collaborator

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

@dylanmcgowan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants