You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just trying to get this project building on osx. I'm seeing the following:
$ npm run build
> capacitor-stockfish@1.1.0 build /Users/adamklein/Developer/capacitor-stockfish
> npm run clean && tsc && rollup -c rollup.config.js
> capacitor-stockfish@1.1.0 clean /Users/adamklein/Developer/capacitor-stockfish
> rimraf ./dist
src/web.ts:12:9 - error TS2416: Property 'getMaxMemory' in type 'StockfishWeb' is not assignable to the same property in base type 'StockfishPlugin'.
Type '() => Promise<number>' is not assignable to type '() => Promise<{ value: number; }>'.
Type 'Promise<number>' is not assignable to type 'Promise<{ value: number; }>'.
Type 'number' is not assignable to type '{ value: number; }'.
12 async getMaxMemory(): Promise<number> {
~~~~~~~~~~~~
Found 1 error.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! capacitor-stockfish@1.1.0 build: `npm run clean && tsc && rollup -c rollup.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the capacitor-stockfish@1.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2021-10-04T17_45_57_377Z-debug.log
Could this be an issue with my typescript version?
$npm tsc -v
6.14.15
The text was updated successfully, but these errors were encountered:
Hi, just trying to get this project building on osx. I'm seeing the following:
Could this be an issue with my typescript version?
The text was updated successfully, but these errors were encountered: