Closed julien-lafont closed 6 years ago
It is very troubling to have these types of unexpected errors when we are using API console in production as part of our CI process. There needs to be a way to pin all versions of dependencies in order to create a stable environment that can reliably build api-consoles without issue. At this point I'm thinking of putting the initial build into a docker container build so that we can always have a working environment to fall back to.
I was just able to generate an api.json. If you have an index.html already, you may be able to use these steps to get past this issue.
npm install -g bower
bower install --save mulesoft/api-console
bower install --save advanced-rest-client/raml-json-enhance advanced-rest-client/raml-js-parser
api-console generate-json --verbose main.raml --output build/api.json
It's a little better with the latest api-console
release (https://github.com/mulesoft/api-console/releases/tag/v4.2.1), but the #18 is now triggered (it require to manually override the raml-json-enhance-node
dependency to 0.3.x)
Thank you for the fix!
Hello,
I've noticed yesterday that I cannot anymore run a
api-console-cli build
task without having this error, from a fresh install (rm -Rf .node_modules; npm install api-console-cli
).Verbose log: https://gist.github.com/julien-lafont/544c53561d2e49157dfbb379a10c4cd6 (node: v9.2.0, npm: 5.6.0)
I've tried some version tweaks, without success. I've seen there are tickets opened about "Required
json
property not found", is it related to my problem? And is there a workaround ?Thank you!
edit: I've isolated a bit more the problem: by forcing a resolution of
raml-json-enhance
to0.3.2
, I can see this incompatibility warning: