-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swagger ui 3.x building problem on Windows #3153
Comments
Thank you! The command run build with the new version works. I have only a little problem I'm using a modified version of the swagger-client, and now during the building process I get the errors: ERROR in C:/Users/Sibo/ ERROR in C:/Users/Sibo/ ERROR in C:/Users/Sibo/ ERROR in C:/Users/Sibo/ Do you know how I can resolve it? |
@SimCordy, that's a very strange error trace. Can you elaborate on how you modified |
Yes, I make some changes to the execute.js file in order to support the coap protocol by means of the node-coap module, so now in the execute source file appears the require('coap') instruction and obvious other changes. npm install net and npm install dgram but after that the problem with the dgram module still remain: ERROR in C:/Users/Sibo//coap/lib/agent.js ERROR in C:/Users/Sibo//coap/lib/server.js |
Hey @SimCordy, are you still having problems with this? Sorry for my delay. Editing files in If you want to include your modified version of # run this in your swagger-ui directory
npm link ./path/to/your/modified/swagger-client/directory
npm run build npm will symlink your modified swagger-client into Let me know if this helps. Thanks for using Swagger! |
Hi, yes finally I resolved. The problem was caused by a library that I used in the modified source code, so I made some changes and then it worked.
This method works but require a lot of copy paste from one folder to another, probably the method that you suggested is better. Thank you. |
Awesome, glad you got it figured out. Feel free to open a ticket with any other questions you have. Thanks for using Swagger! |
Hi,
I'm trying to rebuild swagger ui, because I made some changes to the swagger js library and consequently to the swagger-client index.js file, when I run the npm run buil command in the swagger ui folder, it return me errors, this is the npm log
Can you tell me please the right command to build swagger ui on windows?
I'm using windows 10 nodejs v6.10.3 and npm 3.10.10
The text was updated successfully, but these errors were encountered: