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

React is not defined: Using Explorer & Picker No React CDN with VueJS #1322

Open
alanorwick opened this issue Jan 28, 2021 · 0 comments
Open

Comments

@alanorwick
Copy link

Environment:

  • Preview version: 11.0.2 (latest CDN version for Explorer and Picker)

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version 88.0.4324.96 (Official Build) (x86_64)

Steps to reproduce the problem:

  1. Set up VueJS project
  2. Include following in index.html:
<!-- Latest version of the picker css for your locale -->
<script src="https://cdn01.boxcdn.net/platform/elements/11.0.2/en-US/explorer.no.react.js"></script>
<link rel="stylesheet" href="https://cdn01.boxcdn.net/platform/elements/11.0.2/en-US/explorer.css" />
  1. Vue component:
var contentExplorer = new Box.ContentExplorer();

// Show the content explorer
contentExplorer.show("0",  ACCESS_TOKEN, {
container: ".preview-container",
});

What is the expected behavior? (Screenshots can be helpful here)
The explorer or picker renders in the component.

What went wrong? (Screenshots, console logs, or HAR files can be helpful here)
React is not rendering via the CDN although the specified CDN is meant to not contain React.

Screen Shot 2021-01-27 at 9 01 42 PM

Additional context
Add any other context about the problem here.
Whatever is done for the Content Preview works wonderfully with VueJS. I see that they are on separate versions and projects so hopefully this is even the right place to post this issue. If there are other suggestions or places to get a solution to this please feel free to point me there and close this issue.

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

No branches or pull requests

1 participant