GithubHelp home page GithubHelp logo

Comments (1)

foo123 avatar foo123 commented on May 25, 2024

When I try to make dts-gen command line process the same lib where I have simulated local node_modules and try to load it as a module I get following error:

dts-gen -m Abacus > Abacus.d.ts
C:\Users\User\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:125
        throw e;
        ^

TypeError: Cannot read property 'prototype' of null
    at isClasslike (C:\Users\User\AppData\Roaming\npm\node_modules\dts-gen\bin\l
ib\index.js:109:19)
    at getKeysOfObject.some.k (C:\Users\User\AppData\Roaming\npm\node_modules\dt
s-gen\bin\lib\index.js:42:41)
    at Array.some (<anonymous>)
    at hasCloduleProperties (C:\Users\User\AppData\Roaming\npm\node_modules\dts-
gen\bin\lib\index.js:42:31)
    at getValueTypes (C:\Users\User\AppData\Roaming\npm\node_modules\dts-gen\bin
\lib\index.js:30:37)
    at getResult (C:\Users\User\AppData\Roaming\npm\node_modules\dts-gen\bin\lib
\index.js:187:55)
    at getTopLevelDeclarations (C:\Users\User\AppData\Roaming\npm\node_modules\d
ts-gen\bin\lib\index.js:124:17)
    at Object.generateModuleDeclarationFile (C:\Users\User\AppData\Roaming\npm\n
ode_modules\dts-gen\bin\lib\index.js:50:19)
    at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\dts-ge
n\bin\lib\run.js:58:24)
    at Module._compile (internal/modules/cjs/loader.js:689:30)

from dts-gen.

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.