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
I can't make the simplest example work with Next.js and Nodebox.
page.tsx
'use client' import { Nodebox } from '@codesandbox/nodebox' import { useEffect, useRef } from 'react' export default function Home() { const iframeRef = useRef<HTMLIFrameElement>(null) useEffect(() => { const thisEffect = async () => { if (!iframeRef.current) { return } const emulator = new Nodebox({ iframe: iframeRef.current, }) await emulator.connect() } thisEffect() }) return ( <div> <iframe id="nodebox-runtime-iframe" ref={iframeRef} /> </div> ) }
X node_modules/@codesandbox/nodebox/build/index.mjs (64:0) @ ../../node_modules/.pnpm/cuid@2.1.8/node_modules/cuid/lib/fingerprint.browser.js X ReferenceError: self is not defined at __webpack_require__ (/home/projects/stackblitz-starters-nxgtxn/.next/server/webpack-runtime.js:33:42) at eval (./app/page.tsx:7:78) at (ssr)/./app/page.tsx (/home/projects/stackblitz-starters-nxgtxn/.next/server/app/page.js:151:1) at __webpack_require__ (/home/projects/stackblitz-starters-nxgtxn/.next/server/webpack-runtime.js:33:42) null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Packages affected
Description of the problem
I can't make the simplest example work with Next.js and Nodebox.
What were you doing when the problem occurred?
What steps can we take to reproduce the problem?
page.tsx
Link to sandbox: link
Your Environment
The text was updated successfully, but these errors were encountered: