This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
IBP VS CodeREADME should guide user when using Typescript sample contracts (ie non-generated) #1219
Labels
Milestone
Add instruction to README for existing (not generated) TS contracts, like in fabric samples to install dependencies else packaging an open TS contract will err. One of those is typescript to transpile to javascript.
Description
Its obvious to most TS developers to install dependencies for their project, but for (say) TS newbies using Fabric Samples(like Fabcar) in the extension (and/or where they've used Javascript contracts prior) they might need a 'steer'. In discussions, deemed best place for this might be to add to (README)[https://github.com/IBM-Blockchain/blockchain-vscode-extension/]
If opening an existing TS project, the user is required to do an
npm install
manually first to install dependencies mentioned, such https://github.com/hyperledger/fabric-samples/blob/release-1.4/fabcar/typescript/package.json - in some tutorials, this may already be instructed, but if the IBP extension can mention this, in relation to packaging, it improves the 'lot' of developers / user experience and lets them package contract successfully.Expected Behavior
Indicate in README they will need to have typescript dependencies installed (in package.json) eg. using
npm install
, before attempting to package S/CActual Behavior
Smart contract has errors, please fix.
Possible Fix
Steps to Reproduce
Existing issues
Log File
Your Environment
The text was updated successfully, but these errors were encountered: