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

when i am trying to show a cubic map. i am getting error webgl not supported with status code 1281 in browser though examples on official website works fine for me. #111

Open
narendra65014 opened this issue Feb 4, 2025 · 1 comment

Comments

@narendra65014
Copy link

import React, { useState } from "react";
import ReactPannellum, { getConfig } from "react-pannellum";
import Button from "../ui/Button";
const Panorama = () => {
const [config, setConfig] = useState({
autoRotate: -2,
autoLoad: true,
// defaultHfov: 120,
// maxHfov: 120,
// minHfov: 120,
showControls: false,
});
const handleClick = () => {
console.log(getConfig());
};
return (


<ReactPannellum
id="panorama"
sceneId="scene"
// imageSource="/office.jpg"
config={config}
type="cubemap"
cubeMap={[
"/left.jpg",
"/left.jpg",
"/left.jpg",
"/left.jpg",
"/left.jpg",
"/left.jpg",
]}
style={{
width: "500px",
height: "400px",
}}
/>
<Button onClick={handleClick} leftIcon={👋}>
Click Me


);
};

export default Panorama;

the above is code i am using and all the six images i am providing are same. and they exist in my public directory. i am using vite+react with javascript no swc is used.

@hoaiduyit
Copy link
Owner

Hi @narendra65014 , I'm working on the migration to react v19 and using typescript, I think that will solve your issue with new version. Will be finished by the end of the week.

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