Skip to content

ESM Gatsby v5 errors #60

@donaldboulton

Description

@donaldboulton

Error: [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\donbo\Documents\GitHub\bibwoe.com\node_modules@mdx-js\mdx\index
.js from C:\Users\donbo\Documents\GitHub\bibwoe.com\node_modules@component-controls\instrument\dist\index.js not supporte
d.
Instead change the require of C:\Users\donbo\Documents\GitHub\bibwoe.com\node_modules@mdx-js\mdx\index.js in C:\Users\don
bo\Documents\GitHub\bibwoe.com\node_modules@component-controls\instrument\dist\index.js to a dynamic import() which is av
ailable in all CommonJS modules.

  • index.js:7 Object.
    [bibwoe.com]/[@component-controls]/instrument/dist/index.js:7:11

  • index.js:14 Object.
    [bibwoe.com]/[@component-controls]/config/dist/index.js:14:18

  • index2.js:8 Object.
    [bibwoe.com]/[@component-controls]/webpack-compile/dist/index2.js:8:14

  • index.js:7 Object.
    [bibwoe.com]/[@component-controls]/webpack-compile/dist/index.js:7:13

  • webpack-build.js:13 Object.
    [bibwoe.com]/[@component-controls]/base-integration/dist/webpack-build.js:13:22

  • webpack-build.js:1 Object.
    [bibwoe.com]/[@component-controls]/base-integration/webpack-build.js:1:18

  • gatsby-node.js:8 Object.
    [bibwoe.com]/[@component-controls]/gatsby-theme-stories/dist/gatsby-node.js:8:20

  • gatsby-node.js:1 Object.
    [bibwoe.com]/[@component-controls]/gatsby-theme-stories/gatsby-node.js:1:18

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