Skip to content

Jiti v1.21.1 breaks Docusaurus #237

Description

@slorber

Environment

Jiti v1.21.1 does not seem to be retro-compatible with v1.21.0 and breaks Docusaurus usage due to dependency being upgraded

facebook/docusaurus#10199

Reproduction

yarn create docusaurus

It fails on yarn start

But it gets fixed once we resolve to former Jiti version

  "resolutions": {
    "jiti": "1.21.0"
  },

Describe the bug

Not sure exactly what happens here but it looks like Docusaurus does not see anymore the named export callbacks we call by convention on our Docusaurus plugins.

var options_1 = require("./options");
Object.defineProperty(exports, "validateOptions", { enumerable: true, get: function () { return options_1.validateOptions; } });

The validateOptions export should be called by Docusaurus core, but it is not called anymore, so it seems modules loaded by Jiti are slightly different from before.

Additional context

No response

Logs

No response

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions