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

yarn example fails with semantic error TS2339 #1204

Open
dlee opened this issue Dec 23, 2024 · 0 comments
Open

yarn example fails with semantic error TS2339 #1204

dlee opened this issue Dec 23, 2024 · 0 comments

Comments

@dlee
Copy link

dlee commented Dec 23, 2024

❯ yarn examples
yarn run v1.22.22
$ npm run start

> [email protected] prestart
> run-p examples:install build


> [email protected] examples:install
> node scripts/install-examples.js


> [email protected] build
> cross-env BABEL_ENV=rollup rollup --config rollup.config.js  --silent

Starting the application...
[!] (plugin rpt2) Error: /Users/dlee/code/boardgame.io/src/server/transport/socketio.ts(167,17): semantic error TS2339: Property 'io' does not exist on type 'BaseContext & DefaultContext & { db: Async | Sync; auth: Auth; }'.
src/server/transport/socketio.ts
Error: /Users/dlee/code/boardgame.io/src/server/transport/socketio.ts(167,17): semantic error TS2339: Property 'io' does not exist on type 'BaseContext & DefaultContext & { db: Async | Sync; auth: Auth; }'.
    at error (/Users/dlee/code/boardgame.io/node_modules/rollup/dist/shared/node-entry.js:5400:30)
    at throwPluginError (/Users/dlee/code/boardgame.io/node_modules/rollup/dist/shared/node-entry.js:11878:12)
    at Object.error (/Users/dlee/code/boardgame.io/node_modules/rollup/dist/shared/node-entry.js:12912:24)
    at Object.error (/Users/dlee/code/boardgame.io/node_modules/rollup/dist/shared/node-entry.js:12081:38)
    at RollupContext.error (/Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/src/rollupcontext.ts:37:18)
    at /Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:41:11
    at arrayEach (/Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:516:11)
    at _.each (/Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9342:14)
    at printDiagnostics (/Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2)
    at Object.transform (/Users/dlee/code/boardgame.io/node_modules/rollup-plugin-typescript2/src/index.ts:225:5)
    at /Users/dlee/code/boardgame.io/node_modules/rollup/dist/shared/node-entry.js:13117:25

ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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