-
Notifications
You must be signed in to change notification settings - Fork 157
Unable to activate extension: Cannot read property 'major' of null #2200
Comments
When I install the extension I got also this error: [20/04/2020 à 12:16:51] [INFO] Error requiring dependency: Failed to load gRPC binary module because it was not installed for the current system
Perhaps is it related? I don't know how to fix this. |
Signed-off-by: Jake Turner <jaketurner25@live.com>
Signed-off-by: Jake Turner <jaketurner25@live.com>
When I apply your fix, I can activate the extension. Thanks. |
The project will only appear in the "smart contracts" area once it has been packaged. Did you do an npm install before you tried to package the open project? |
Yes, I do an "npm install" then "Packages Open Project". I get the error
I do this because when I "Create New Project" (Default Contract, TypeScript, MyAsset, Add to workspace), files are generated and the log indicates no error but the smart contract doesn't appear in the panel "smart contacts".
I try to npm install manually. No error. When I try npm start build I get the following error:
|
When trying to activate extension I get the following error: Cannot read property 'major' of null".
Description
I tried the "Retry activation" button and also uninstall/reinstall the extension but I got the same error.
Steps to Reproduce
Log File
[17/04/2020 à 18:18:10] [INFO] Starting IBM Blockchain Platform Extension
[17/04/2020 à 18:18:10] [INFO] Attempting to require dependency: grpc
[17/04/2020 à 18:18:10] [INFO] Restoring command registry
[17/04/2020 à 18:18:11] [INFO] Registering commands
[17/04/2020 à 18:18:12] [INFO] Execute stored commands in the registry
[17/04/2020 à 18:18:12] [INFO] IBM Blockchain Platform Extension activated
[17/04/2020 à 18:18:12] [ERROR] Failed to activate extension: TypeError: Cannot read property 'major' of null
[17/04/2020 à 18:18:12] [ERROR] TypeError: Cannot read property 'major' of null
at Function. (c:\Users\xxx.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.26\build\extension\util\ExtensionUtil.js:596:54)
at Generator.next ()
at fulfilled (c:\Users\xxx.vscode\extensions\ibmblockchain.ibm-blockchain-platform-1.0.26\build\extension\util\ExtensionUtil.js:18:58)
Your Environment
The text was updated successfully, but these errors were encountered: