Skip to content

export-api-def doesn't work with loopback-boot@3 #291

@ffflabs

Description

@ffflabs

Description/Steps to reproduce

Use the generator to scaffold a new application. Then export the api definition:

npm i -g loopback-cli
lb app experiment
cd experiment
lb export-api-def

paso2

It works! At this point, the dependencies list loopback-boot@2.6.5

If you upgrade to loopback-boot@3, like it's shown in loopback-getting-started

Running lb export-api-def yields an empty definition:

Captura de pantalla_2019-05-17_13-27-17

Link to reproduction sandbox

Uh... should I provide access to my linux environment? ❓

Expected result

It should export at least the same information than before. I was hoping for it to actually output more info.

Additional information

$  node -e 'console.log(process.platform, process.arch, process.versions.node)'

linux x64 8.16.0

Before:

$  npm ls --prod --depth 0 | grep loopback

├── loopback@3.25.1
├── loopback-boot@2.28.0
├── loopback-component-explorer@6.4.0

After:

$  npm ls --prod --depth 0 | grep loopback

├── loopback@3.25.1
├── loopback-boot@3.3.0
├── loopback-component-explorer@6.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions