Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unrecognized option 'type' , node v11.9.0 #366

Open
tripper54 opened this issue Sep 17, 2019 · 4 comments
Open

TypeError: unrecognized option 'type' , node v11.9.0 #366

tripper54 opened this issue Sep 17, 2019 · 4 comments

Comments

@tripper54
Copy link

using node v11.9.0, I get a Type error:

TypeError: unrecognized option 'type', expected: 'requireBlueprintName', 'generateSourceMap'
    at Object.exports.render (/site/node_modules/aglio/lib/main.js:99:20)
    at render (/site/node_modules/aglio/lib/main.js:147:22)
    at /site/node_modules/aglio/lib/main.js:171:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:54:3)

node v10.15.3 works fine.

@miguel-rodriguez-cimino

Node v10.15.3 throws the same error

@Gasol
Copy link
Collaborator

Gasol commented Feb 6, 2020

Take a look at #362 (comment)

@stevebaxter
Copy link

This is happening for me with Node 12.18.3

@D1360-64RC14
Copy link

Same on node v14.17.0

user@host:/...$ aglio -i docs/docs.apib -s
Server started on http://127.0.0.1:3000/
Rendering docs/docs.apib
/.../node_modules/aglio/lib/main.js:99
    return drafter.parse(filteredInput, {
                   ^

TypeError: unrecognized option 'type', expected: 'requireBlueprintName', 'generateMessageBody', 'generateMessageBodySchema', 'generateSourceMap'
    at Object.exports.render (/.../node_modules/aglio/lib/main.js:99:20)
    at /.../node_modules/aglio/lib/bin.js:126:24
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)

Using Aglio from @Gasol worked pretty well.

yarn add https://github.com/Gasol/aglio.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants