Open AlexXi19 opened 10 months ago
Has anyone else run into this problem? It happened in my code when I try to serve the nx application. Any chance that we can switch from
require('pkginfo')(metricsMiddleware, { dir: Path.dirname(module.parent.filename), include: ['name', 'version'] });
to
require('pkginfo')(metricsMiddleware, { dir: Path.dirname(module.parent ? module.parent.filename : module.filename ), include: ['name', 'version'] });
?
I kind of 99% sure that this is somehow related to nx deamon because after building static and run it with node - everything working perfectly.
Running into error with vitest.