You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this is just an instance of a larger issue, maybe related to #405 but not quite the same (I don't get the MIME type of "text/plain" error).
I am able to run my code with live-server without issue. I packaged it into an htmlwidget and tried to run it in an Rmd file with runtime: shiny. I get no output, and I get this in the console:
Uncaught SyntaxError: import.meta may only appear in a module
The import.meta does appear in my /lib/library.min.js file, but this error only happens when trying to render the htmlwidget.
Running the same code outside of the htmlwidgets context, i.e. having a js file with import Thing from "/some/lib.js;" and then <script type="module" src="/my-script.js"></script> in my index.html works perfectly using live-server.
I will be happy for even a high-level explanation of what might be going on here, or where to look for solutions.
The text was updated successfully, but these errors were encountered:
Perhaps this is just an instance of a larger issue, maybe related to #405 but not quite the same (I don't get the
MIME type of "text/plain"
error).I am able to run my code with
live-server
without issue. I packaged it into an htmlwidget and tried to run it in an Rmd file withruntime: shiny
. I get no output, and I get this in the console:The
import.meta
does appear in my /lib/library.min.js file, but this error only happens when trying to render the htmlwidget.Running the same code outside of the htmlwidgets context, i.e. having a js file with
import Thing from "/some/lib.js;"
and then<script type="module" src="/my-script.js"></script>
in my index.html works perfectly using live-server.I will be happy for even a high-level explanation of what might be going on here, or where to look for solutions.
The text was updated successfully, but these errors were encountered: