docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

The codesandbox demo could not run!

Open dangkhoipro opened this issue 2 years ago • 3 comments

Have you read the Contributing Guidelines on issues?

Description

The codesandbox demo link throws an error. I think you should fix this bug as soon as possible. Step to re-produce:

  • Open docusaurus.io
  • Click Try a Demo button
  • Check the terminal result image

Self-service

  • [ ] I'd be willing to address this documentation request myself.

dangkhoipro avatar Nov 01 '23 03:11 dangkhoipro

A v3 config.ts file is present in the sandbox with v2 dependencies.

homotechsual avatar Nov 01 '23 08:11 homotechsual

Seems like CodeSandbox isn't running a fresh install when building the sandbox so they are getting cached v2 packages with a v3 site structure. Not sure what we'd need to do on this one or if it can be solved from our end.

homotechsual avatar Nov 01 '23 08:11 homotechsual

I think yarn.lock is outdated. So I remove the old file, re-run again, remove some js file (because the sandbox version I check is typescript), and bump it works! I'm not sure if I covered all the errors, but here is the forked sandbox I modified.

dangkhoipro avatar Nov 03 '23 10:11 dangkhoipro