I tried to use the latest JS API, you added
but there are such exceptions[NEW] Experimental TypeScript declarations file included, to improve intellisense in IDEs like Visual Studio Code.
but there are such exceptions[NEW] Experimental TypeScript declarations file included, to improve intellisense in IDEs like Visual Studio Code.
Code: Select all
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"src/**/*.spec.ts",
"src/**/__tests__/*.ts"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}I don't think the issue I'm having is either of those things, specifically.Bax wrote:It is not clear if you are having issues using the API (connect to SFS, etc), or if it is just a matter of intellisense and code completion.
Code: Select all
import * as SFS2X from '../../smartfox/sfs2x-api-1.7.15';Code: Select all
Uncaught TypeError: t.resolve is not a function
at Object.setNativePromiseCode: Select all
var sfs = new SFS2X.SmartFox();I've tried using Smartfox in a basic Ionic project (one created using their starter wizard, with just one simple screen). That's about as simple as I'll be able to manage. I looked into creating a simpler project so that it doesn't include Ionic, but I don't know how. I don't know what a simple TypeScript project would look like. I'm not familiar with React or Parcel for example; only Ionic, Cordova and Capacitor.Bax wrote:Could you send a very basic project example showing the TypeScript transpile errors?
Thanks, I'll try it out soon!Bax wrote:All reported errors should be fixed by the latest 1.7.17 version of the API.