Closed martenjurgens closed 1 year ago
Hi, thank you for the issue, and also for making a Sandbox. Unfortunatelly, I don't really know Next.JS as well. I now that sometimes some issues related to that happens. Can you try to contribute to this bug fixing and help me? It will be a really kind help. Thanks
Maybe @mkubdev could be of help? I believe I don't have the necessary skills to fix it.
Importing like
import { MarkersPlugin } from "react-photo-sphere-viewer/dist/index";
instead of
import { MarkersPlugin } from "react-photo-sphere-viewer
fixes the issue.
Ok, thanks a lot! I'll integrate the docs
Il sab 22 apr 2023, 13:30 Marten Jyrgens @.***> ha scritto:
Importing like import { MarkersPlugin } from "react-photo-sphere-viewer/dist/index"; instead of import { MarkersPlugin } from "react-photo-sphere-viewer fixes the issue.
— Reply to this email directly, view it on GitHub https://github.com/Elius94/react-photo-sphere-viewer/issues/30#issuecomment-1518614332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRXUU7KBYRL2FMLQZJNNHLXCO6M7ANCNFSM6AAAAAAXHA5MHQ . You are receiving this because you were assigned.Message ID: @.***>
Maybe @mkubdev could be of help? I believe I don't have the necessary skills to fix it.
Hi @martenjurgens and @Elius94, sry I was not available when you tagged me.. Awesome for the fix!
Importing like
import { MarkersPlugin } from "react-photo-sphere-viewer/dist/index";
instead ofimport { MarkersPlugin } from "react-photo-sphere-viewer
fixes the issue.
This solves the issue!
What happened?
Hello, thanks for the project.
Trying to use any of the plugins with Nextjs 13 gives this Syntaxerror.
What should have happened?
Should be able to use plugins without getting the error.
Code
Sandbox Link
https://codesandbox.io/p/sandbox/autumn-forest-0ugkzs?file=%2Fnext.config.js&selection=%5B%7B%22endColumn%22%3A2%2C%22endLineNumber%22%3A4%2C%22startColumn%22%3A2%2C%22startLineNumber%22%3A4%7D%5D
Library Version
latest
What operating system are you using?
Windows
What browser are you using?
Chrome
Logs
Interest to fix the bug