Skip to content

@docusaurus/mdx-loader patch missing #5191

@MikeMcC399

Description

@MikeMcC399

Description

When npm install is executed an error message is output

Warning: patch-package detected a patch file version mismatch

URL of Issue(s)

https://github.com/cypress-io/cypress-documentation

Steps to replicate

git fetch upstream
git merge upstream/main
npm install
npm install

> cypress-docusaurus-ts@0.0.0 postinstall
> patch-package

patch-package 6.5.1
Applying patches...
@docusaurus/mdx-loader@2.2.0 ✔

Warning: patch-package detected a patch file version mismatch

  Don't worry! This is probably fine. The patch was still applied
  successfully. Here's the deets:

  Patch file created for

    @docusaurus/mdx-loader@2.2.0

  applied to

    @docusaurus/mdx-loader@2.4.0

  At path

    node_modules/@docusaurus/mdx-loader

  This warning is just to give you a heads-up. There is a small chance of
  breakage even though the patch was applied successfully. Make sure the package
  still behaves like you expect (you wrote tests, right?) and then run

    patch-package @docusaurus/mdx-loader

  to update the version in the patch file name and make this warning go away.

---
patch-package finished with 1 warning(s).

up to date, audited 1196 packages in 3s

214 packages are looking for funding
  run `npm fund` for details

25 vulnerabilities (10 moderate, 15 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Browser

n/a

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

@elylucas

I saw you did some updates e.g. 9fb4c38

The following cleared the error. It should be committed to the repository and it belongs to the set of actions which you were taking care of.

$ npx patch-package @docusaurus/mdx-loader
patch-package 6.5.1
• Creating temporary folder
• Installing @docusaurus/mdx-loader@2.4.0 with npm
• Diffing your files with clean files
✔ Created file patches/@docusaurus+mdx-loader+2.4.0.patch

💡 @docusaurus/mdx-loader is on GitHub! To draft an issue based on your patch run

    npx patch-package @docusaurus/mdx-loader --create-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions