Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
TypeScript errors in Mobile Hub SDK setup docs — Cloud Customer Connect
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

Question
3
Views
0
Comments
edited Jun 21, 2019 1:52PM in Digital Assistant and 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!