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
- 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
Assessment
This issue has not been assessed yet.