question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "Can't resolve 'crypto' in node_modules\@azure\storage-blob\dist-esm\storage-blob\src\credentials

See original GitHub issue
  • Package Name: @azure/storage-blob
  • Package Version: 12.4.0
  • Operating system: Windows 10
  • typescript
    • version: 4.0.5

Describe the bug After upgrading from “@azure/storage-blob”: “^12.2.1”, to “@azure/storage-blob”: “^12.4.0”, the Angular 11 compiler shows following error after ‘ng serve’ was executed: ` Error: ./node_modules/@azure/storage-blob/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js Module not found: Error: Can’t resolve ‘crypto’ in ‘C:\Projects\Angular-Portal\node_modules@azure\storage-blob\dist-esm\storage-blob\src\credentials’

Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\DumpStack.log.tmp’ Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\hiberfil.sys’ Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\pagefile.sys’ Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\swapfile.sys’ `

To Reproduce Steps to reproduce the behavior:

  1. use new package with Angular 11 and Typescript 4.0.5

Expected behavior No error and working sdk.

Additional context With previous version the same code is working. “@azure/identity”: “^1.1.0” was upgraded to “@azure/identity”: “^1.2.2” without any issues. Is also working with “@azure/storage-blob”: “^12.2.1”.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
developeromI89commented, May 27, 2021

Error: Unable to resolve module crypto from \azure\AzureDemo\node_modules@azure\storage-blob\dist\index.js: crypto could not be found within the project or in these directories: node_modules.

when trying to install it gives errors to install others package also and chain continues to install packages only.

Using in React-native “@azure/storage-blob”: “^12.5.0”,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'crypto' - Stack Overflow
I ran into a similar issue lately while trying to use another library (tiff.js) in a small project I was experimenting with.
Read more >
Module not found: Error: Can't resolve 'crypto' #318 - GitHub
I have use CRA (create-react-app). react-scripts Version 5.0.0 Error Message: WARNING in ./node_modules/froala-editor/js/plugins.pkgd.min.js ...
Read more >
Module not found: Error: Can't resolve 'crypto' [Solved]
The error "Module not found: Error: Can't resolve 'crypto'" occurs because there has been a breaking change in Webpack version 5. To solve...
Read more >
Can't resolve 'crypto' in node_modules/bson/dist react
The app is running fine but I'm having a problem when I deploy the app to Netlify. I have to configure the deploy...
Read more >
JavaScript : Module not found: Error: Can't resolve 'crypto'
JavaScript : Module not found: Error : Can't resolve ' crypto ' [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] JavaScript ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found