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

Urgent help needed - Error in ReactJS #237

Open
spam79 opened this issue Jun 5, 2024 · 3 comments
Open

Urgent help needed - Error in ReactJS #237

spam79 opened this issue Jun 5, 2024 · 3 comments

Comments

@spam79
Copy link

spam79 commented Jun 5, 2024

When we use Papaya.js package, using below code in ReactJS getting below error. Request the expert team to please help with a solution.

Error during Execution of below code in Chrome browser:

$/ papaya-mango-viewer undefined error

Code:

import logo from './logo.svg';
import './App.css';
const papaya = require('./papaya-viewer');

var params = [];
params["worldSpace"] = true;
params["images"] = ["data/myBaseImage.nii.gz", "data/myOverlayImage.nii.gz"];
params["surfaces"] = ["data/mySurface.surf.gii"];
params["myOverlayImage.nii.gz"] = {"min": 4, "max": 10};
console.log(papaya)

function App() {
return (


{/*
logo


Edit src/App.js and save to reload.



Learn React

*/}


);
}

export default App;

@rii-mango
Copy link
Owner

@niks2060 Do you know what might be the issue here?

@spam79
Copy link
Author

spam79 commented Jun 10, 2024 via email

@niks2060
Copy link
Contributor

@spam79 I am working on migrating this to React just need to wait for all other libraries to be ported to react or typescript which papaya use.

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

3 participants