-
Notifications
You must be signed in to change notification settings - Fork 6
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
error when starting nextjs after installing @codesandbox/sdk #4
Comments
First, it showed "module" not found so I installed "module" manually. |
Module not found: Can't resolve 'module'
https://nextjs.org/docs/messages/module-not-found Import trace for requested module: |
my code
|
its also showing this ⚠ ./node_modules/@codesandbox/sdk/dist/esm/index.js Import trace for requested module: tried with node v18.20.5, v22.12.0, v23.4.0, v20.18.0 |
i also tried it in api
Import trace for requested module: |
Interesting. I believe we've seen this issue before. Could you try running Next.js with Turbo enabled and see if you can reproduce this? I'm talking with the Next.js team to see how we can resolve this. |
I also tried it with a remix + vite project. its still the same |
i tried it using express server when using module type
error
after some change
error
using commonjs
during api call
|
may I know the node version, express version, etc., in which the package was tested so that I can stick with those versions for now until the fix is done? |
That is so weird, let me create an example where I have it working. |
Right, we don't expose the Generally I would recommend to do sandbox management (start, hibernate, shutdown) on the server, and then you can pass authorization to the browser for users to use the sandbox. |
I will try to reproduce your error and fix it in the library itself! |
Hey! We have published a new update (0.1.0) that might fix Next.js. Could you give it a try? |
sure, will try that
…On Thu, 9 Jan 2025 at 05:59, Ives van Hoorne ***@***.***> wrote:
Hey! We have published a new update (0.1.0) that might fix Next.js. Could
you give it a try?
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTK42XSERV43ELY5OMUIXD2JW7FZAVCNFSM6AAAAABTR2NML6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZYHE2DKMBVGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Build Error
Next.js (15.0.1) out of date (learn more)
Failed to compile
./node_modules/glob-stream/node_modules/through2/through2.js:1:1
Module not found: Can't resolve 'readable-stream/transform'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/glob-stream/index.js
./node_modules/vinyl-fs/lib/src/index.js
./node_modules/vinyl-fs/index.js
./node_modules/module/dist/index.js
./node_modules/@codesandbox/sdk/dist/esm/index.edge.js
./src/store/codeSandboxStore.ts
./src/components/app/console.tsx
This error occurred during the build process and can only be dismissed by fixing the error.
The text was updated successfully, but these errors were encountered: