Skip to content

require() of ES Module ... not supported when using ember-cli-addon-docs #20

Open
@MichalBryxi

Description

@MichalBryxi

With version 2.2.0 of this addon I'm getting following error: require() of ES Module ... not supported. Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules when using ember-cli-addon-docs. When I downgrade to 2.1.0 this problem goes away.

Reproduction

  1. Checkout this branch of this repo
  2. Setup:
cd ember-leaflet
pnpm install
  1. Run the ember-cli-addon-docs app:
cd docs
pnpm start
  1. See error:
> ember serve

require() of ES Module /Users/michal/ember/ember-leaflet/node_modules/.pnpm/@[email protected]/node_modules/@handlebars/parser/dist/cjs/index.js not supported.
Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules.


Stack Trace and Error Report: /var/folders/8q/yrjx_8s115q43r8w5qd90_m00000gn/T/error.dump.3c029355a72e79b98031412cab726c5d.log
 ELIFECYCLE  Command failed with exit code 1.

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