Skip to content

Errors trying to compile auto-generated REST api package #7

@malengatiger

Description

@malengatiger

Steps to recreate:

  1. Created chaincode usschainx
  2. Tests OK
  3. Attempt to create REST api as follows:

npm install -g @worldsibu/convector-rest-api
conv-rest-api generate api -c usschainx -p usschain2

  1. REST api package created OK
    npx lerna run compile --scope usschainx-app

Tool Versions:
conv version 1.1.3
hurl version 1.0.5
convector-rest-api version 1.0.8

I am running this command: npx lerna run compile --scope usschainx-app
THE ERROR:
../../node_modules/fabric-shim/node_modules/winston/index.d.ts(4,23): error TS4090: Conflicting definitions for 'node' found at '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/fabric-shim/node_modules/@types/node/ts3.2/index.d.ts' and '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/@types/node/ts3.2/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
../../node_modules/fabric-shim/node_modules/winston/lib/winston/config/index.d.ts(4,23): error TS4090: Conflicting definitions for 'node' found at '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/fabric-shim/node_modules/@types/node/ts3.2/index.d.ts' and '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/@types/node/ts3.2/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
../../node_modules/fabric-shim/node_modules/winston/lib/winston/transports/index.d.ts(4,23): error TS4090: Conflicting definitions for 'node' found at '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/fabric-shim/node_modules/@types/node/ts3.2/index.d.ts' and '/Users/mac/WORLD_SIBU/unemployment-services-chaincode-repo/usschain2/node_modules/@types/node/ts3.2/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions