question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn Start yields "Module Not Found" error

See original GitHub issue

🐛 Bug Report

Steps to Reproduce

NodeJS 14.16

"dependencies": {
    "@docusaurus/core": "2.0.0-beta.6",
    "@docusaurus/preset-bootstrap": "2.0.0-beta.6",
    "@docusaurus/theme-bootstrap": "^2.0.0-beta.6",
    "@mdx-js/react": "^1.6.21",
    "@svgr/webpack": "^5.5.0",
    "clsx": "^1.1.1",
    "file-loader": "^6.2.0",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "url-loader": "^4.1.1"
  },

As specified here: https://docusaurus.io/docs/installation

Create a development website using this command:

$ npx @docusaurus/init@latest init my-website bootstrap

Expected behavior

Development site should appear

Actual behavior

$ yarn start
Yarn run v1.22.10
$ docusaurus start
Starting the development server...
Docusaurus website is running at "http://localhost:3000/".

✖ Client
  Compiled with some errors in 2.97s

ℹ 「wds」: Project is running at http://localhost:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/someuser/DOCTEST/my-website
ℹ 「wds」: 404s will fallback to /index.html


Module not found: Error: Can't resolve '@theme/BlogArchivePage' in '/Users/someuser/DOCTEST/my-website/.docusaurus'
Module not found: Error: Can't resolve '@theme/BlogArchivePage' in '/Users/someuser/DOCTEST/my-website/.docusaurus'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
lex111commented, Oct 9, 2021

No longer relevant, as the Bootstrap theme has been removed from the core packages.

1reaction
lex111commented, Sep 22, 2021

Ideally, it’d be good to have docusaurus-community org where we could move this Bootstrap theme package. Maybe we should create it ourselves, not wait for long approval from FB?

Read more comments on GitHub >

github_iconTop Results From Across the Web

`yarn start` command result in `Module not found` error
The issue seems from the Babel runtime being split into two, and breaking the Material UI. I downgraded the babel runtime, with npm...
Read more >
module-not-found-error | Yarn - Package Manager
moduleNotFoundError(id) -> err​​ Returns an error with the appropriate message and code.
Read more >
4.0.0-next.77 sample app yields "Module not found: Your ...
4.0.0-next.77 sample app yields "Module not found: Your application tried to access react-refresh" when started with Yarn 2 #9446.
Read more >
module-not-found - Next.js
A module not found error can occur for many different reasons: The module you're trying to import is not installed in your dependencies;...
Read more >
Error: yarn start - error Command "start" not found-Reactjs
This issue happens when file "package.json" will gets deleted or changed. Please check your "package.json" file. deepak ranjan 21.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found