Giter Site home page Giter Site logo

Cannot find name 'Event' about azure-storage-js HOT 9 CLOSED

azure avatar azure commented on May 28, 2024 7
Cannot find name 'Event'

from azure-storage-js.

Comments (9)

XiaoningLiu avatar XiaoningLiu commented on May 28, 2024 1

Yes. Before that, please include "dom" in your tsconfig "lib".

from azure-storage-js.

roppa avatar roppa commented on May 28, 2024 1

I'm getting this error too. To be completely explicit about the tsconfig.json fix:

{
  "compilerOptions": {
    "lib": [
      "dom"
    ]
}

from azure-storage-js.

XiaoningLiu avatar XiaoningLiu commented on May 28, 2024

Thanks for reporting! For Aborter implementation, seems any is better than Event type.

For this SDK, dom is needed because it needs to handle both Node.js and browser runtime features.

from azure-storage-js.

 avatar commented on May 28, 2024

I have the same issue. Any plan to fix this issue?

from azure-storage-js.

ashapir0 avatar ashapir0 commented on May 28, 2024

If possible, please add this to some sort of FAQ, rather frustrating and in-descript error.

from azure-storage-js.

XiaoningLiu avatar XiaoningLiu commented on May 28, 2024

Will do.

from azure-storage-js.

drub0y avatar drub0y commented on May 28, 2024

Is it safe to assume this going to be sorted out in a future release? Having to reference dom in a node app that otherwise has no need for it is not exactly intuitive and, once you do, it just leads to a ton of types showing up in the global space that have no other reason to be there.

from azure-storage-js.

XiaoningLiu avatar XiaoningLiu commented on May 28, 2024

Fix will be included in the release of this month.

from azure-storage-js.

XiaoningLiu avatar XiaoningLiu commented on May 28, 2024

This is fixed in 10.4.0, see https://www.npmjs.com/package/@azure/storage-blob

from azure-storage-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.