Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version next for package @docusaurus/core could not be found #3821

Closed
yahu1031 opened this issue Nov 25, 2020 · 1 comment · Fixed by #3824
Closed

Version next for package @docusaurus/core could not be found #3821

yahu1031 opened this issue Nov 25, 2020 · 1 comment · Fixed by #3824
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@yahu1031
Copy link

🐛 Bug Report

Hello there,

When i used to use 2.0.0-alpha.66, Everything was good. But, when i have upgraded to 2.0.0-alpha.68 manually, then this issue started. This issue didn't effect my project. But, IDK this will give me a major issue or not but as a perfectionist 🤣 i would like to run my app without any errors. And this continues to 2.0.0-alpha.69 too. I though this will get a fix on next update but didn't. So I would like to raise an issue. Please do close and if this is a duplication, cause I couldn't able to find any issue similar to this.

Have you read the Contributing Guidelines on issues?

yes

To Reproduce

  1. manually change version from2.0.0-alpha.66 to 2.0.0-alpha.66+
"dependencies": {
  "@docusaurus/core": "^2.0.0-alpha.69",
  "@docusaurus/preset-classic": "^2.0.0-alpha.69",
  //…//
}
  1. Remove node_modules folder and run npm i
  2. Run the project F5(VSCode). terminal looks obsoletely fine. But, not the debug console. Here is that looks like(I'm pointing the issue)
> free-learn@1.0.0 start D:\Programs\JavaScript\NodeJS\Free Learn
> docusaurus start

c:\Program Files\NodeJS\node_modules\npm\node_modules\npm-lifecycle\index.js:255
Starting the development server...
node_modules/@docusaurus/core/lib/commands/start.js:34

<--- From Here --->
VersionNotFoundError: Version `next` for package `@docusaurus/core` could not be found
    at packageJson (d:\Programs\JavaScript\NodeJS\Free Learn\node_modules\package-json\index.js:87:23)
    at processTicksAndRejections (<node_internals>/internal/process/task_queues.js:93:5)
    at async lastestVersion (d:\Programs\JavaScript\NodeJS\Free Learn\node_modules\latest-version\index.js:5:20)
    at async UpdateNotifier.fetchInfo (d:\Programs\JavaScript\NodeJS\Free Learn\node_modules\update-notifier\index.js:105:18)
    at async D:\Programs\JavaScript\NodeJS\Free Learn\node_modules\update-notifier\check.js:13:17 {name: 'VersionNotFoundError', stack: 'VersionNotFoundError: Version `next` for pack…n\node_modules\update-notifier\check.js:13:17', message: 'Version `next` for package `@docusaurus/core` could not be found'}
<--- Till Here --->

node_modules/update-notifier/check.js:26
Docusaurus website is running at: http://localhost:3000/
node_modules/@docusaurus/core/lib/commands/start.js:46
i 「wds」: Project is running at http://localhost:3000/
node_modules/webpack-log/src/loglevel/PrefixFactory.js:55
i 「wds」: webpack output is served from /
node_modules/webpack-log/src/loglevel/PrefixFactory.js:55
i 「wds」: Content not from webpack is served from D:\Programs\JavaScript\NodeJS\Free Learn
node_modules/webpack-log/src/loglevel/PrefixFactory.js:55
i 「wds」: 404s will fallback to /index.html

Expected behavior

> free-learn@1.0.0 start D:\Programs\JavaScript\NodeJS\Free Learn
> docusaurus start

 c:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js
Starting the development server...            node_modules/@docusaurus/core/lib/commands/start.js
Docusaurus website is running at: http://localhost:3000/          node_modules/@docusaurus/core/lib/commands/start.js
i 「wds」: Project is running at http://localhost:3000/            node_modules/webpack-log/src/loglevel/PrefixFactory.js
i 「wds」: webpack output is served from /                               node_modules/webpack-log/src/loglevel/PrefixFactory.js
i 「wds」: Content not from webpack is served from D:\Programs\JavaScript\NodeJS\Free Learn                  node_modules/webpack-log/src/loglevel/PrefixFactory.js
i 「wds」: 404s will fallback to /index.html                          node_modules/webpack-log/src/loglevel/PrefixFactory.js

App must run without that error.

Actual Behavior

But the app still runs with that error.

Your Environment

  • Docusaurus version used: 2.0.0-alpha.69
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Microsoft Edge V-87.0.664.47, node - v14.15.1
  • Operating system and version (desktop or mobile): Windows 10 Home Single Language (20H2 update)

Reproducible Demo

Video link Here,
docusaurus.config.js

Regards.

@yahu1031 yahu1031 added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Nov 25, 2020
@slorber
Copy link
Collaborator

slorber commented Nov 26, 2020

Thanks, will be fixed by #3824

@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants