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

Bug: Migrate bin/index.mjs rewritten as index.js , causing CLI to fail #6897

Closed
6 of 7 tasks
sambacha opened this issue Mar 11, 2022 · 3 comments
Closed
6 of 7 tasks
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@sambacha
Copy link

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Bug: Migrate bin/index.mjs rewritten as index.js , causing CLI to fail

Reproducible demo

No response

Steps to reproduce

install migrate

Expected behavior

to run migrate

Actual behavior

fails to load as esm module needs to be .mjs not .js

Your environment

osx 10.15

Self-service

  • I'd be willing to fix this bug myself.
@sambacha sambacha 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 Mar 11, 2022
@Josh-Cena
Copy link
Collaborator

Thanks for the report! This has already been fixed. Could you try with @docusaurus/migrate@canary?

@Josh-Cena Josh-Cena removed the status: needs triage This issue has not been triaged by maintainers label Mar 11, 2022
@slorber
Copy link
Collaborator

slorber commented Mar 11, 2022

Oh I see, that's why I see it working for me :D

@Josh-Cena
Copy link
Collaborator

Going to close as resolved. The migration CLI isn't used a lot these days anyways

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

No branches or pull requests

3 participants