sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Update Next.js template and node version to suport next.js app router template

Open Innei opened this issue 1 year ago • 5 comments

Tell us how you think we can improve Sandpack

Packages affected

  • [x] sandpack-client
  • [ ] sandpack-react

What is this feature?

For now, I can not use next.js version ^v14. Got You are using Node.js 16.15.1. For Next.js, Node.js version >= v18.17.0 is required.

Please update nodejs version or provide the latest nextjs version template

CleanShot 2024-03-13 at 5  30 04@2x

My code.

 <SandpackSC
        template="nextjs"
        options={{
          activeFile: 'src/app/og/route.tsx',
          ...options,
        }}
        customSetup={{
          dependencies: {
            next: '^14',
          },
        }}
        files={{
          'src/app/og/route.tsx':
            require('!!raw-loader!../code/og-remote-font.raw.tsx').default,
        }}
      />

How would your idea work?

Do you have any examples of how you would like to see us implement it?

Innei avatar Mar 13 '24 09:03 Innei

I'm facing same issue

cameronking4 avatar Apr 17 '24 05:04 cameronking4

I have the same issue. Nodebox is not working at all for my next project

theshadowagent avatar Sep 28 '24 13:09 theshadowagent

same issue, do we have any updates here?

kulkarniankita avatar Oct 13 '24 17:10 kulkarniankita