bottletechltd / react-marzipano

React component for Marzipano (https://www.marzipano.net/)
16 stars 4 forks source link

Module not found: Can't resolve 'marzipano' #2

Open calacianu opened 4 years ago

calacianu commented 4 years ago

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!

louisch commented 4 years ago

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.

calacianu commented 4 years ago

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

louisch commented 4 years ago

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?

adriants commented 1 year ago

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

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