Closed Oleksl888 closed 9 months ago
Hello! I think that in your case there's a relation with this #3 Simply delete react and react-dom from the node modules of the library
Thank you for the reply! But it didn't help. Now I get the bellow error:
node:internal/modules/cjs/loader:1042 throw err; ^
Error: Cannot find module 'react' Require stack:
- /home/.../photo-share-test/node_modules/react-scripts/scripts/start.js at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15) at Function.resolve (node:internal/modules/cjs/helpers:109:19) at Object.
(/home/.../photo-share-test/node_modules/react-scripts/scripts/start.js:43:31) at Module._compile (node:internal/modules/cjs/loader:1218:14) at Module._extensions..js (node:internal/modules/cjs/loader:1272:10) at Module.load (node:internal/modules/cjs/loader:1081:32) at Module._load (node:internal/modules/cjs/loader:922:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/.../photo-share-test/node_modules/react-scripts/scripts/start.js' ] }
I tried to install dependencies from the package.json that is in your sandbox (with earlier libraries versions) and also tried in latest ones. Also a friend of mine ran it on her machine and it didn't work either. Any suggestions what else can be done?
Hey. It seems that something is wrong in your implementation. It should be really easy to boot up this. https://codesandbox.io/p/sandbox/snowy-snowflake-rygxfk?file=%2Fsrc%2FApp.js
Please check if something is different with this sandbox and let me know!
I don't have access to that sandbox of yours :(
I tried to run a example in this sandbox and still nothing. Maybe you could have a quick look if possible? https://codesandbox.io/p/sandbox/test-photo-sphere-vr2ffh
./pano_1.jpg should be placed in "public" not in "src" ;)
Yes, boss that was it! I must say error messages that I got has been a bit counterintuitive to me. Thank you for your help and quick responses! I owe you a Peroni!
I'm glad to hear that! Nice :) Thanks
What happened?
Trying to run library in test react app as described in example and it doesn't render anything. These are the dependencies versions that I use:
"react": "^18.2.0", "react-dom": "^18.2.0", "react-photo-sphere-viewer": "^4.2.1-psv5.6.0",
Getting the following error:Same error appears when I use .js or .tsx files in two separate projects.
What should have happened?
Must render panorama.
Code