Why isn't OpenAPI generated APIModule not working when it's declared inside node_modules?

Asked a year ago

So, I have a problem that might look simple for someone who's experienced with npm, but I'm having quite a hard time. Namely, each time I try to fetch OpenAPI data while they're in the node_modules I get an error. Why does this happen?

Cliff Dawson

Sunday, October 09, 2022

Removing OpenAPI from the node_modules directory and moving it somewhere else will make it work. As an easier fix, you can also consider manually importing the ApiModules from the directory they're installed (instead of the default one - node_modules).

Write an answer...


Please follow our  Community Guidelines

Can't find what you're looking for?