facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
55.54k stars 8.33k forks source link

The codesandbox demo could not run! #9489

Open dangkhoipro opened 10 months ago

dangkhoipro commented 10 months ago

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:

Self-service

homotechsual commented 10 months ago

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

homotechsual commented 10 months ago

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.

dangkhoipro commented 10 months ago

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.