loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

lb4 discover does not work with ts files

Open SouthRibbleTech opened this issue 7 years ago • 4 comments

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.

SouthRibbleTech avatar Jul 31 '19 11:07 SouthRibbleTech

Im not sure if i have understand right the issue but did you try this command ?

npm run build

godartm avatar Jul 31 '19 14:07 godartm

@agnes512 @nabdelgadir , could you please take a look? Thanks.

dhmlau avatar Jul 31 '19 20:07 dhmlau

@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.

dhmlau avatar Jul 31 '19 21:07 dhmlau

@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.

dhmlau avatar Aug 13 '19 01:08 dhmlau