We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Static template does not work in CDN install
Load this HTML file
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <script type="importmap"> { "imports": { "react": "https://esm.sh/react@18.2.0", "react-dom": "https://esm.sh/react-dom@18.2.0", "react-dom/": "https://esm.sh/react-dom@18.2.0/", "@codesandbox/sandpack-react": "https://esm.sh/@codesandbox/sandpack-react@2.11.3", "@codesandbox/sandpack-themes": "https://esm.sh/@codesandbox/sandpack-themes@2.0.21", } } </script> <script type="module"> import React from "react"; import { createRoot } from "react-dom/client"; import { Sandpack } from "@codesandbox/sandpack-react"; import { nightOwl } from "@codesandbox/sandpack-themes"; const root = createRoot(document.getElementById("root")); const sandpackComponent = React.createElement( Sandpack, { template: "static", theme: nightOwl, options: { showConsole: true, showConsoleButton: true } }, null ); root.render(sandpackComponent); </script> </head> <body> <div id="root"></div> </body> </html>
Preview does not load and you can read some errors in console
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Packages affected
Description of the problem
Static template does not work in CDN install
What were you doing when the problem occurred?
What steps can we take to reproduce the problem?
Load this HTML file
Preview does not load and you can read some errors in console
Link to sandbox: link (optional)
Your Environment
The text was updated successfully, but these errors were encountered: