You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

TypeScript errors in Mobile Hub SDK setup docs

edited Jun 21, 2019 1:52PM in Digital Assistant & Mobile


I have installed the Mobile Cloud Service SDK for ionic into my ionic app, as per the notes in the official Oracle docs found here:

Set Up the SDK

However, the code shown in step 3 (Create the configuration file for the app) seems not to be correctly formed TypeScript. When I paste it into a new .ts file in my project, the following two lines of code cause compilation errors:


import * as mcssdk from 'mcs'
const mcs: IMCS = mcssdk;


The errors are: Identifier expected, ; expected, cannot find name 'mcssdk'. There's also no closing brace for the first opening brace. Does anyone have a working example I could use?


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!