cloudflare / cloudflare/json-schema-tools

Module build failed: LoaderRunnerError: Module: '<path>/json-schema-apidoc-loader/lib/loader.js' is not a loader (must have normal or pitch function)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
341
Forks
32
PR merge metrics
No merged PRs in 30d

Description

When accessing doca's generated index endpoint, it fails with the error
`Module build failed: LoaderRunnerError: Module: '/json-schema-apidoc-loader/lib/loader.js' is not a loader (must have normal or pitch function)` (already mentioned in #15).

As far as I can tell, the loader definition inside the `config.${ENV}.babel.js` for `json-schema-apidoc-loader` seems to be no longer working because Webpack [changed it's expected format](https://webpack.js.org/concepts/loaders/). Please correct me, if I am wrong - I am no Webpack expert.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.