-
Notifications
You must be signed in to change notification settings - Fork 34
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
*reactR/R/dependencies.R*: Shinyapps.io deployment fails to load *react-tools.umd.cjs* provided by dependency *reactwidget-2.0.0* #86
Comments
having a similar problem, seems to have cropped up since v0.6.0 was released.
when we rolled back to v0.5.0 the problem went away. one thing i did notice was the changelog for v0.6.0 mentions a move from webpack to vite, and we are still using webpack. could this be related? |
What software environment is your Shiny application running in? Are you using Shiny Server? I'm just curious about the potential differences in environment because the error message you quoted is different, but concerning the same issue.
Good to know! You only needed to change the reactR package version used, right? Did you need to rebuild your JSX after the rollback too?
Hmm... probably, but whether users of the reactR package are using Webpack or Vite themselves to build their own JSX should matter, right? |
To answer the question, Shinyproxy rather than ShinyServer. |
I get similar error when using cell argument reactable
does not render (on posit workbench) after upgrading reactR to v0.6.0.
rolling back to v0.5.0 solved the problem. |
Phew! Took me a while but I figured out why (for the exact same app) my deployment wasn't working but my colleagues was working. Pulling the bundles and diffing the manifest.json files solved it - he's on 0.5.0 and I'm on 0.6.0. Fortunately, the name looks similar to |
I'm glad this is getting views! Hopefully we'll have a fix soon. |
I can confirm this affects reactR 0.6.0 with any widget that uses reactR. I missed this too in #83, but https://github.com/react-R/reactR/blob/master/inst/www/react-tools/react-tools.umd.cjs probably needs to be changed back to having a
The difference between Netlify and shinyapps.io is probably the presence of a Firefox shows this errorfor shinyapps.io, which sends a The resource from “https://glin.shinyapps.io/shiny-reactable-test/_w_1bb798f3/reactwidget-2.0.0/react-tools.umd.cjs” was blocked due to MIME type (“application/octet-stream”) mismatch (X-Content-Type-Options: nosniff). Firefox shows this warning for Netlify, which doesn't have the header: The script from “https://v0-4-4-9000-1f6a3b8--reactable-docs.netlify.app/articles/examples_files/reactwidget-2.0.0/react-tools.umd.cjs” was loaded even though its MIME type (“application/octet-stream”) is not a valid JavaScript MIME type. |
Indeed, I saw those two different errors; I hope I mentioned them in the issue report. The extra research you did and report makes sense from the error messages reported; I didn't know why they were different, but MIME types were definitely part of the issue! Thanks for investigating this. |
For what its worth, I submitted a support request to the Posit/shinyapps.io team and received that following, which they suggested I pass on here:
I did downgrade to 0.5.0 from 0.6.0 which solved the issue of the reactable with nested details not being displayed on the server. So, thanks for documenting that. |
This also seems to affect rendering rmarkdown with interactive gt tables. Here's a minimal rmarkdown:
The error looks like this:
|
Thanks @glin for all your help with this. I have reviewed and tested. Will submit |
On its way to CRAN. Thanks everyone for the report, the diagnosis, and the solution. Closing now, but please feel free to reopen. |
I've opened an issue in a Shiny project I'm leading development in to track an issue I'm having with reactR when the application is deployed to Shinyapps.io. The issue (ashokkrish/episim#148) is only present when running there, and does not occur when running locally.
When running on Shinyapps.io, the following warning is printed in the browser console.
When running the application locally, the react-based widget the application is using is properly loaded, but the following (different) warning is printed.
Are there are any workarounds I could use while waiting for the version of react-tools that reactR depends on to be bumped to patch the MIME type issue?
The text was updated successfully, but these errors were encountered: