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

Not initializing on Windows #21

Open
tushamsbe opened this issue Jun 10, 2019 · 0 comments
Open

Not initializing on Windows #21

tushamsbe opened this issue Jun 10, 2019 · 0 comments

Comments

@tushamsbe
Copy link

Tried to initialize like this using a basic swagger json on Windows:
swaggerRoutes(server, { api: './definitions/openapi.json', handlers: { path: './dist/handlers/v1', template: './definitions/template/handler.mustache', getTemplateView: (operation) => operation,template generate: enableCodeGenerator, group: false, }, authorizers: './src/security/v1', });

However, getting error:

AssertionError [ERR_ASSERTION]: The first character of a path should be / or *

After doing some investigation found that this is caused by line 35 on routerRegister.js file

Changed path.normalize to path.posix.normalize and it fixed the issue.

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

1 participant