Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

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

Open
calacianu opened this issue Jun 5, 2020 · 4 comments
Open

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

calacianu opened this issue Jun 5, 2020 · 4 comments

Comments

@calacianu
Copy link

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
Copy link
Contributor

louisch commented Jun 8, 2020

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
Copy link
Author

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

@louisch
Copy link
Contributor

louisch commented Jun 9, 2020

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
Copy link

adriants commented Jan 8, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants