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

Module not found: Error: Can't resolve 'swagger-schema-official/schema' #163

Closed
Thavaprakash opened this issue Jan 18, 2018 · 4 comments
Closed

Comments

@Thavaprakash
Copy link

Hi ,
I'm getting below error. Please help me to get rid of this error.
npm version: "1.0.0"
node version: v8.9.1
npm version: 5.5.1

ERROR in ./node_modules/sway/lib/validation/validators.js
Module not found: Error: Can't resolve 'swagger-schema-official/schema' in '/home/project/node_modules/sway/lib/validation'
 @ ./node_modules/sway/lib/validation/validators.js 31:20-61
 @ ./node_modules/sway/lib/types/api.js
 @ ./node_modules/sway/index.js
 @ ./node_modules/swagger-node-runner/index.js
 @ ./node_modules/swagger-express-mw/lib/index.js
@whitlockjc
Copy link
Member

I cannot reproduce this. I just installed sway into a new project and used it without issue.

@Thavaprakash
Copy link
Author

HI @whitlockjc ,
Thanks for your prompt reply, Actually I'm getting this error while run build using webpack after implementing Typescript in my project.

@whitlockjc
Copy link
Member

I'm not sure this is related to sway so I'm going to close this. If you find out otherwise, let me know.

@dontry
Copy link

dontry commented Nov 11, 2018

I found the same error. I checked that the required module 'swagger-schema-official/schema' is missing in node_modules.

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

3 participants