You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defaultZoomLvl only works with images in the public directory.
What should have happened?
The image should zoom to the default no matter how to is served.
Code
`import React from "react";
import { ReactPhotoSphereViewer } from "react-photo-sphere-viewer";
function App() {
const photoSphereRef = React.useRef();
return (
<ReactPhotoSphereViewer
ref={photoSphereRef}
/* defaultZoomLvl will only work with images in the public directory */
src={"https://i.ibb.co/23KMzTN/GSAA5125.jpg"}
defaultZoomLvl={0}
hideNavbarButton={true}
width={"100vw"}
height={"100vh"}
navbar={false}
/>
Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
WARNING in ./node_modules/react-photo-sphere-viewer/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'
Interest to fix the bug
I would like to fix this bug!
The text was updated successfully, but these errors were encountered:
What happened?
defaultZoomLvl only works with images in the public directory.
What should have happened?
The image should zoom to the default no matter how to is served.
Code
`import React from "react";
import { ReactPhotoSphereViewer } from "react-photo-sphere-viewer";
function App() {
const photoSphereRef = React.useRef();
return (
<ReactPhotoSphereViewer
ref={photoSphereRef}
/* defaultZoomLvl will only work with images in the public directory */
src={"https://i.ibb.co/23KMzTN/GSAA5125.jpg"}
defaultZoomLvl={0}
hideNavbarButton={true}
width={"100vw"}
height={"100vh"}
navbar={false}
/>
);
}
export default App;`
Sandbox Link
https://codesandbox.io/p/github/devinmarkley/rps_example/main?workspaceId=ada4ce98-a807-4c56-b005-aabd6d57a5c0
Library Version
"react-photo-sphere-viewer": "^6.0.0"
"@photo-sphere-viewer/core": "^5.9.0"
What operating system are you using?
macOS
What browser are you using?
Chrome
Logs
Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
WARNING in ./node_modules/react-photo-sphere-viewer/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'
Interest to fix the bug
The text was updated successfully, but these errors were encountered: