lb4 discover does not work with ts files
When you use lb4 datasource it creates the files in /src/datasources/*.ts
However lb4 discover requires that the datasource be in /dist/datasources/*.js
You can not simply rename ts to js
How do you manually create .js datasource files, is there any documentation, I can't find any.
Im not sure if i have understand right the issue but did you try this command ?
npm run build
@agnes512 @nabdelgadir , could you please take a look? Thanks.
@SouthRibbleTech, lb4 discover command requires the LoopBack 4 project to be built first, so as @godartm suggested, you need to run npm run build before running the discovery command.
@SouthRibbleTech, we believe we've answered your question, so I'm closing this issue. If you still have questions, please ping me here and I can reopen the issue. Thanks.