Giter Site home page Giter Site logo

Comments (8)

fuxin967 avatar fuxin967 commented on May 2, 2024 1

Hi @AnthonyTsu1984 , thank you for your quick reply. Actually I tried to create a brand new project using scaffold command
npx create-docusaurus@latest my-website classic --typescript
which has exact the same dependencies as you pointed out, and it does not work also.
Another tried is creating a repro with https://new.docusaurus.io/, also does not work.

And the issue is not about broken anchor warnings, it's about clicking a url with an anchor and it does not scroll to the right position

from docusaurus.

JEricaM avatar JEricaM commented on May 2, 2024 1

@slorber thank you so much for the answer!! solved my problem :D

from docusaurus.

AnthonyTsu1984 avatar AnthonyTsu1984 commented on May 2, 2024

Hi, probably the same issue here.
I have a Chinese site where I add anchor id manually as follows:
image

But I don't know why such titles carry no anchor styles, and I assume that makes all anchors broken.

image

from docusaurus.

JEricaM avatar JEricaM commented on May 2, 2024

yes I think is the same error :(

from docusaurus.

AnthonyTsu1984 avatar AnthonyTsu1984 commented on May 2, 2024

I have checked the differences between the dependencies of a fresh-install site and my site, and it turns out that it's the fault of the dependencies. Clean your dependencies and remove conflicting and unnecessary dependencies. Everything will go smoothly then.

from docusaurus.

fuxin967 avatar fuxin967 commented on May 2, 2024

Also have the same issue

from docusaurus.

AnthonyTsu1984 avatar AnthonyTsu1984 commented on May 2, 2024

Also have the same issue

Try to clean the dependencies as I do. The update command that Docusaurus provides does not cover everything.

image

Check your package.json and make sure that you have these dependencies with the correct versions.

After cleaning my dependencies, the broken anchor warnings are gone forever.

from docusaurus.

slorber avatar slorber commented on May 2, 2024

Hey

The problem on this url is a hosting problem.
https://docs.avacysolution.com/docs/avacy-saas/cookie-policy#aggiornamenti-ai-termini-della-cookie-policy

This URL is not supposed to serve build/index.html, but it actually does.

If you throttle your network (using Chrome devtools) or plainly disable JS, you will see that your web server serves your index/homepage instead of the actual page it's supposed to serve. The UI gets "fixed" later because React takes over and re-renders it with the content you expect. But the problem remains: you don't serve the correct page.

It is your responsibility to configure your custom hosting solution to serve a static deployment properly. I'd recommend using Vercel or Netlify to make this a no-brainer in case you don't know how to fix the problem on your current host.


Regarding problems encountered by others, they are likely different problems. Please create repros using https://docusaurus.new/stackblitz and we'll take a look.

from docusaurus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.