Redocly / developer-portal-starter

Starter template for the Redocly developer portal
https://redoc.ly
Other
64 stars 101 forks source link

bug: uninformative error messages #209

Open WaterSibilantFalling opened 2 years ago

WaterSibilantFalling commented 2 years ago

An error of some type is reported, but there is no reference to the source file. Lots of lines are from internal code, but nothing about the error.

"marked is not a function"

OpenAPI Definition error "openapi\another-api.json":
marked is not a function

TypeError: marked is not a function
    at e.value (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib\src\se
rvices\MarkdownRenderer.js:1:3480)
    at e.value (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib\src\se
rvices\MarkdownRenderer.js:1:3624)
    at Function.value (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib
\src\services\MenuBuilder.js:1:891)
    at Function.value (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib
\src\services\MenuBuilder.js:1:511)
    at new SpecStore (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib\
src\services\SpecStore.js:1:1243)
    at new e (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\redoc-lib\src\serv
ices\AppStore.js:1:2212)
    at getDefaultMdComponents
(C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\services\ProStore.js:1:1062)
    at e.value
(C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\services\ProStore.js:1:9435)
    at new e
(C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\reference-docs\lib\services\ProStore.js:1:5332)
    at updateSpecCacheByIdAndPath (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\developer-portal
\dist\engine\plugins\gatsby-source-redocly-filesystem\oas\cache.js:1:1467)
    at getOrCreateRedocStoreById (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\developer-portal\
dist\engine\plugins\gatsby-source-redocly-filesystem\oas\cache.js:1:759)
    at f (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\developer-portal\dist\engine\plugins\gats
by-source-redocly-filesystem\gatsby-node.js:1:3958)
    at Object.exports.onCreateNode (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\@redocly\developer-porta
l\dist\engine\plugins\gatsby-source-redocly-filesystem\gatsby-node.js:1:9789)
    at runAPI (C:\oldD\PLEXURE\redocly_2022\adp_clone\node_modules\gatsby\src\utils\api-runner-node.js:434:16)

 ERROR