Skip to content

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

Closed

Description

@sambacha

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.

Activity

  1. added
    bugAn error in the Docusaurus core causing instability or issues with its execution
    status: needs triageThis issue has not been triaged by maintainers
    on Mar 11, 2022
  2. Josh-Cena commented on Mar 11, 2022

    @Josh-Cena
    Collaborator

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

  3. slorber commented on Mar 11, 2022

    @slorber
    Collaborator

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

  4. Josh-Cena commented on Mar 13, 2022

    @Josh-Cena
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions