I am trying to use Sandpack with Next.js and set up the app directory inside the template. Specifically, I want to modify the Next.js template to reflect the app directory file structure and use it in my custom setup.
What were you doing when the problem occurred?
I was trying to modify the Next.js template used by Sandpack to reflect the app directory file structure.
What steps can we take to reproduce the problem?
Modify the Next.js template used by Sandpack to reflect the app directory file structure.
Use the modified template in the custom setup of Sandpack.
Run Sandpack with the modified template and observe the problem.
Bug report
Packages affected
Description of the problem
I am trying to use Sandpack with Next.js and set up the app directory inside the template. Specifically, I want to modify the Next.js template to reflect the app directory file structure and use it in my custom setup.
What were you doing when the problem occurred?
I was trying to modify the Next.js template used by Sandpack to reflect the app directory file structure.
What steps can we take to reproduce the problem?
Link to sandbox:
Interestingly the sandbox link loads correctly https://codesandbox.io/p/sandbox/lq7kpr?utm_medium=sandpack&file=%2Fapp%2Fpage.js%3A1%2C1
Your Environment
Screenshots
Instatiation of sandpack
Modified NEXTJS template
Error message