Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: View360 is not defined #428

Open
Ludus731 opened this issue Oct 6, 2023 · 1 comment
Open

Uncaught ReferenceError: View360 is not defined #428

Ludus731 opened this issue Oct 6, 2023 · 1 comment
Assignees
Labels
❓ Question Questions about View360

Comments

@Ludus731
Copy link

Ludus731 commented Oct 6, 2023

Description

Installation/setup of View360 using CDN (documentation) is not working.

Steps to check or reproduce

  1. Paste this code into an HTML file:
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="https://naver.github.io/egjs-view360/release/latest/css/view360.min.css" />
</head>
<body>
    <div class="view360-container is-16by9">
        <canvas class="view360-canvas" />
    </div>
    
    <script src="https://naver.github.io/egjs-view360/release/latest/dist/view360.pkgd.js"></script>
    <script>
        const viewer = new View360("#viewer", {
            projection: new View360.EquirectProjection({
                src: "img.jpg",
                video: false
            })
        });
    </script>
</body>
</html> 
  1. Open the page in a browser and you should see an error in the console: Uncaught ReferenceError: View360 is not defined.
@malangfox malangfox self-assigned this Oct 7, 2023
@malangfox
Copy link
Contributor

Hello @Ludus731.

It seems that https://naver.github.io/egjs-view360/release/latest/dist/view360.pkgd.js provides view360 v3, which is different from the documentation.
I think you can use https://naver.github.io/egjs-view360/release/4.0.0-beta.7/view360.pkgd.js instead.

We'll fix the incorrect part of the documentation soon.

@malangfox malangfox added the ❓ Question Questions about View360 label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question Questions about View360
Projects
None yet
Development

No branches or pull requests

2 participants