Skip to main content

File Error

· One min read
Fa'iz Maulana Habibi
College Student of Dian Nuswantoro University

Docusaurus : get error after temoving file inside '/blog'

When I remove a file inside '/blog', I get this error

ERROR in ./.docusaurus/registry.js 1:11337-11448

Module not found: Error: Can't resolve '@site/blog/2021-08-26-welcome/index.md?truncated=true' in '/home/ray/Documents/documentation/.docusaurus'

ERROR in ./.docusaurus/registry.js 1:11505-11581

Module not found: Error: Can't resolve '@site/blog/2021-08-26-welcome/index.md?truncated=true' in '/home/ray/Documents/documentation/.docusaurus'

ERROR in ./.docusaurus/registry.js 1:12427-12532

Module not found: Error: Can't resolve '@site/blog/2021-08-26-welcome/index.md' in '/home/ray/Documents/documentation/.docusaurus'

ERROR in ./.docusaurus/registry.js 1:12574-12635

Module not found: Error: Can't resolve '@site/blog/2021-08-26-welcome/index.md' in '/home/ray/Documents/documentation/.docusaurus'

and it is caused by '.docusaurus' file cache.

My tips

How to tackle this?

You just need to remove '.docusaurus' cache using

rm -rf .docusaurus build

Afterwards re-run command

npm run start