react-marzipano icon indicating copy to clipboard operation
react-marzipano copied to clipboard

Module not found: Can't resolve 'marzipano'

Open calacianu opened this issue 5 years ago • 4 comments

Hello,

I'm trying to use your node module to create a 360 virtual tour but I get his error when I start the project:

./node_modules/react-marzipano/dist/index.js Module not found: Can't resolve 'marzipano' in '/Users/USER/Documents/Projects/marzipano/node_modules/react-marzipano/dist'

Can you help me with some suggestions? Thank you!

calacianu avatar Jun 05 '20 14:06 calacianu

Hi, marzipano is a peer dependency of this library, meaning it's required, but won't be installed for you. You should run npm install marzipano.

louisch avatar Jun 08 '20 02:06 louisch

I know how to use it, I git this error after I installed the package

calacianu avatar Jun 09 '20 07:06 calacianu

I can't seem to replicate the bug on my own setup. Would you mind either posting some of your source code here (especially package.json, webpack/babel stuff or whatever configuration for the build tool you're using), or just pushing the whole repository onto github and linking it here?

louisch avatar Jun 09 '20 10:06 louisch

I have the same issue and I'm not sure how to fix it. When I clone the project I just execute:

  • npm i
  • npm run dev

Then in http://localhost:3000/examples/basic/index.html I get this error image

The import ir searching "react-marzipano.es.js" on dist folder from the root of the project. This path doesn't exist.

EDIT: Also, if I modify this path to the "marzipano.js" library downloaded from "marzipano.net" I get this problem that I'm not really sure how to solve it: image

adriants avatar Jan 08 '23 15:01 adriants