Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Content

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?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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