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

Running github-globe in NextJS #7

Closed
popcorn opened this issue Oct 15, 2022 · 2 comments
Closed

Running github-globe in NextJS #7

popcorn opened this issue Oct 15, 2022 · 2 comments

Comments

@popcorn
Copy link

popcorn commented Oct 15, 2022

Hey @janarosmonaliev and folks, thank you for this project. It's great!

I'm a complete noob in Javascript and all the frameworks, build tools etc.

But, I managed to edit code to tweak the globe to how I'd like it to look. Now I want to deploy this globe in the NextJS project.

I followed the instructions and run npm run build.

This generated the main.js file that I included in my NextJS project.

When I run my NextJS page, I can see upon inspection that main.js is loaded. But, the globe is not showing. I am wondering if I'm supposed to include more files from the project and not just the main.js. Has anyone managed to run github-globe in NextJS? If yes, can you share some tips?

Thank you.

@popcorn
Copy link
Author

popcorn commented Oct 15, 2022

Oh, I added a blank canvas element and now it showed. Thank you and I hope this helps someone.

@popcorn popcorn closed this as completed Oct 15, 2022
@popcorn
Copy link
Author

popcorn commented Oct 16, 2022

Turns out it had nothing to do with adding canvas element. I guess my server had to be restarted after adding the script.

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

1 participant