handlebars-lang / handlebars-lang/handlebars-parser
require() of ES Module ... not supported when using ember-cli-addon-docs
- Dominant language
- JavaScript
- Stars
- 43
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/MichalBryxi/ember-leaflet/tree/mb/handlebars-parser-bugreport)
2. Setup:
```
cd ember-leaflet
pnpm install
```
3. Run the ember-cli-addon-docs app:
```
cd docs
pnpm start
```
4. See error:
```
> ember serve
require() of ES Module /Users/michal/ember/ember-leaflet/node_modules/.pnpm/@handlebars+parser@2.2.0/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.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.