farminf/pannellum-react

I cannot build my app. Missing files

Opened this issue · 11 comments

Hi. I did install. All good.
but I just added the code to run the plugin and I have this error:

ERROR in ./node_modules/pannellum-react/lib/elements/Pannellum.js
Module not found: Error: Can't resolve '../pannellum/css/pannellum.css'

ERROR in ./node_modules/pannellum-react/lib/elements/PannellumVideo.js
Module not found: Error: Can't resolve '../pannellum/css/pannellum.css'

Im running your this code:

<Pannellum
	width="100%"
	height="500px"
	image={`./assets/img/placeholder/360image.jpg`}
	pitch={10}
	yaw={180}
	hfov={110}
	autoLoad
	onLoad={loaded360}
/>

some missing peace that I doing wrong?

I have the same problem too :(

Same here

same here

It looks like the entire css folder is missing from the npm package in the /pannellum directory

For my project, switching back to version 1.1.3 fixed the issue.

@sanderdewijs I did also use Storybook in your project?
did you had some issue?

because my storybook dosent work ... with this version 1.1.3

=(

Looks like that this tool has too many bugs

No sorry I did not use Storybook. Perhaps you could manually add the css directory in the node_modules as a workaround?

@cabralada Thanks this fixed my problem too. running in "react": "^16.8.6",

#62 should fix it when merged

please try again... Thanks for the PR @jstorm31
sorry for the delay everyone

Version 1.2.4 fixed this for me. I think the issue can be closed now.