Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error - #1

Closed
adamklein opened this issue Oct 4, 2021 · 1 comment
Closed

build error - #1

adamklein opened this issue Oct 4, 2021 · 1 comment

Comments

@adamklein
Copy link
Contributor

adamklein commented Oct 4, 2021

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
@adamklein
Copy link
Contributor Author

Not sure what was wrong, I think I had a npm versioning error in one of the packages. It's building for me now. Closing ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant