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

Questions about installation and use #12

Open
micarner opened this issue Jun 16, 2024 · 3 comments
Open

Questions about installation and use #12

micarner opened this issue Jun 16, 2024 · 3 comments

Comments

@micarner
Copy link
Contributor

Hey there,
First off thanks for taking the time to put something like this together. I did have some issues getting this up and going on my system and was hoping to propose some things that might help others.

I just submitted a PR with some changes to the readme.md. Nothing too crazy, just fixing the markdown for the codeblocks so that it displays correctly.

I do think it would help to get some example usages, such as setting up site-wide settings, like Google analytics, as well as per-page stuff like title/description/og fields. I was actually unable to get this installed and working by importing the documents and objects from the plugin package. I'm not sure if it's because of a bug, or if I was just doing it wrong. I ended up copying over the code and gutting some things to get a custom solution for my site.

As far as the errors I was seeing, this is the one I get when i add siteMeta() to my list of plugins. I am using NextJs 14, so I'm not sure if that has something to do with it:

image

@micarner
Copy link
Contributor Author

micarner commented Jun 16, 2024

So the auto import that intellij uses is the commented line in the screenshot below. I tried using the import line in the github docs but I get this error:

image

If I switch it to SiteMeta and use that in my list of plugins, it loads into the studio, however it doesn't let me import any of the sanity objects.

@AndreBClark
Copy link
Owner

Thanks for the PR! I'm new to making packages and i appreciate all the feedback. I'm looking into the auto import issue you're having now. I need to make sure the typing and naming is consistent.

@micarner
Copy link
Contributor Author

np! If you need me to test any changes, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants