You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to upgrade my angular application from angular 16 to angular 18. This @apidevtools/json-schema-ref-parser is coming from swagger-parser in my application and i am using v10.0.3 of it.
I updated @angular-devkit/build-angular to 18.2.8 version. When i am trying to serve the application using ng serve command i am getting following error
✘ [ERROR] Could not resolve "http"
node_modules/@apidevtools/json-schema-ref-parser/lib/resolvers/http.js:3:21:
3 │ const http = require("http");
╵ ~~~~~~
The package "http" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "https"
node_modules/@apidevtools/json-schema-ref-parser/lib/resolvers/http.js:4:22:
4 │ const https = require("https");
╵ ~~~~~~~
The package "https" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
I already added http and https in browser list in package.json but as expected it is not helping at all.
I am trying to upgrade my angular application from angular 16 to angular 18. This
@apidevtools/json-schema-ref-parser
is coming fromswagger-parser
in my application and i am using v10.0.3 of it.I updated
@angular-devkit/build-angular
to 18.2.8 version. When i am trying to serve the application using ng serve command i am getting following errorI already added http and https in browser list in package.json but as expected it is not helping at all.
My few Angular dependencies are
and few dev-dependencies
Can someone please help?
The text was updated successfully, but these errors were encountered: