Nothing Special   »   [go: up one dir, main page]

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

Official Box documentation CDN v21.0.0 not working #3599

Closed
olegarg1 opened this issue Aug 2, 2024 · 7 comments
Closed

Official Box documentation CDN v21.0.0 not working #3599

olegarg1 opened this issue Aug 2, 2024 · 7 comments

Comments

@olegarg1
Copy link
olegarg1 commented Aug 2, 2024

I am trying to integrate Box file picker in my next js project and was going to use CDN from the official site documentation. I got react 18.2.0 in the project and see that v21.0.0 is available in this case but clicking on every CDN in the doc gives an error message :
This XML file does not appear to have any style information associated with it. The document tree is shown below.

NoSuchKey
The specified key does not exist.

It looks for me that there is no content available.

Official docs:
https://developer.box.com/guides/embed/ui-elements/installation/

If you are a Box employee, you do not need to create an issue to open a pull request

Please fill out the following template so we can reproduce and fix your issue as quickly as possible!

Note: if your issue includes a potential security vulnerability, please do not file it here. Instead, email the issue to security@box.com for support.

Note: if your issue involves previewing files, please report the issue here.

Environment:

  • Elements version:

Desktop (please complete the following information):

  • OS: [e.g. Windows 10]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Steps to reproduce the problem:

What is the expected behavior? (Screenshots can be helpful here)

What went wrong? (Screenshots, console logs, or HAR files can be helpful here)

Link to application or sample code:

If relevant, link to file (or attach file here)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@greg-in-a-box
Copy link
Contributor
greg-in-a-box commented Aug 2, 2024

Hello @olegarg1, is there any particular reason why you aren't using the npm package instead of the CDN since you're using nextJS? The CDNs should not be affected by the react update.

@olegarg1
Copy link
Author
olegarg1 commented Aug 3, 2024

Hi @greg-in-a-box , thanks for your response. My project is large and using npm package will add unnecessary stuff to it as i need to use only file picker and CDN seems the right option to use in my case but when clicking on it in docs, shows error. When change to previous version in url (20.0.0) it shows ok but not the 21.0.0. I checked all the other CDN a
nd it shows the same error . Only Content Preview SDK is working there.

@greg-in-a-box
Copy link
Contributor
greg-in-a-box commented Aug 5, 2024

The documentation for the CDNs was prematurely updated, you can use v20, the picker should be the same in both versions when v21 is deployed

@olegarg1
Copy link
Author
olegarg1 commented Aug 6, 2024

Thanks @greg-in-a-box . How about using v20 for next js with react 18.2.0. I see that you have just recently updated to support react 18?

@greg-in-a-box
Copy link
Contributor

@olegarg1, If you are using the no-react version of v20, you should not experience any issues. If you want to use the react version, I would wait until we publish v21 which should be relatively soon.

@greg-in-a-box
Copy link
Contributor

v21 deployed to the CDNs

@olegarg1
Copy link
Author
olegarg1 commented Aug 6, 2024

Hi @greg-in-a-box ! Great, thank you very much for confirming. I checked and this time i can see it is working. Yes , I would need to use the one with react as the other one giving me an error as it does not see React. I would need to make react available globally for that. So, I would go for v21 in this case. Thank you!

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

No branches or pull requests

2 participants