Azure/azure-cosmos-js

Module not found: Error: Can't resolve 'http'

prashantvc opened this issue · 1 comments

Updated the @azure/cosmos v3.0.2, when my sample Ionic app stopped working with the v3.0.0-19

Now the app throws following runtime errors:

ERROR in ./node_modules/@azure/cosmos/dist/index.js
Module not found: Error: Can't resolve 'http' in 'C:\Users\prchol\source\repos\cosmos-todo\node_modules\@azure\cosmos\dist'
ERROR in ./node_modules/@azure/cosmos/dist/index.js
Module not found: Error: Can't resolve 'https' in 'C:\Users\prchol\source\repos\cosmos-todo\node_modules\@azure\cosmos\dist'
[ERROR] An error occurred while running subprocess ng.

You can find my sample code at https://github.com/prashantvc/cosmos-todo

You can run the app using ionic serve or ng serve

Closed by #373. Will be fixed in 3.0.3 shortly