egjs-view360
egjs-view360 copied to clipboard
Conflict with Vite's default index.css
Description
I noticed Vite's default index.css is not compatible with View360 v4. No errors are output to console, but the View360's size becomes 0x0.
It might be good to add a note in the doc, to replace index.css if your project uses Vite.
Steps to check or reproduce
- Create a vite project
npm create vite@latest
- Paste the React sample code into App.tsx
- Put a sample image in the project's
public
directory and correct the image file path in the code - Run vite in the project directory
- Open the site
Hello @IoriBranford I think you forgot to add the CSS file that View360 provides. Please check https://naver.github.io/egjs-view360/docs/quick-start-react Also: https://naver.github.io/egjs-view360/docs/styles