francescov1 / mongoose-tsgen

A plug-n-play Typescript generator for Mongoose.
102 stars 24 forks source link

Cryptic debug errors #130

Closed akshay-nm closed 3 months ago

akshay-nm commented 8 months ago

is there a way to get exactly what throws?

    TypeError: Cannot read properties of undefined (reading 'ASSET')
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 ———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  Lerna (powered by Nx)   Ran target generate-types for project database (3s)

    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Even a file and line number would be nice!

francescov1 commented 8 months ago

Hey @akshay-nm, this is an error I've never seen before. Usually errors are more descriptive. I suspect it may be something in your project setup. Can you provide a simple repo reproducing it and Ill take a look?

francescov1 commented 3 months ago

@akshay-nm Closing this as I havent heard back. Feel free to re-open if its still an issue