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

Compile error starting example app #178

Closed
aednichols opened this issue Mar 19, 2022 · 1 comment · Fixed by #179
Closed

Compile error starting example app #178

aednichols opened this issue Mar 19, 2022 · 1 comment · Fixed by #179

Comments

@aednichols
Copy link
Contributor

Running directly in the studio/docs/example/server directory. Node v16.14.2, npm 8.5.0, ts-node v10.7.0

> npm run build

> @mathigon/studio-example@0.1.0 build
> mgon-build --assets --minify --search

  ✔ Built icons.svg in 27ms
  ✔ Built frontend/accounts.scss in 5408ms
  ✔ Built docs/example/content/geography/styles.scss in 3450ms
  ✔ Built frontend/main.scss in 4209ms
  ✔ Built docs/example/frontend/custom.scss in 3585ms
  ✔ Built docs/example/content/science/styles.scss in 3445ms
  ✔ Built frontend/dashboard.scss in 4401ms
  ✔ Built docs/example/frontend/course.scss in 4025ms
  ✔ Built docs/example/frontend/custom.ts in 5432ms
  ✔ Built frontend/main.ts in 5436ms
  ✔ Built frontend/dashboard.ts in 5442ms
  ✔ Built frontend/accounts.ts in 5458ms
  ✔ Built docs/example/content/geography/functions.ts in 3467ms
  ✔ Built docs/example/content/science/functions.ts in 3466ms
  ✔ Built docs/example/frontend/course.ts in 5444ms
  ✔ Built search-index.json and search-docs.json in 6ms
  DONE!
> npm start

> @mathigon/studio-example@0.1.0 start
> ts-node -s server/app.ts

/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:840
    return new TSError(diagnosticText, diagnosticCodes);
           ^
TSError: ⨯ Unable to compile TypeScript:
../../server/models/progress.ts:119:39 - error TS7006: Parameter 'm' implicitly has an 'any' type.

119   const messages = this.messages?.map(m => ({content: m.content, type: m.kind}));
                                          ~
../../server/models/progress.ts:180:34 - error TS7006: Parameter 'm' implicitly has an 'any' type.

180     messages: this.messages?.map(m => ({content: m.content, kind: m.kind})),
                                     ~

    at createTSError (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:840:12)
    at reportTSError (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:844:19)
    at getOutput (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:1034:36)
    at Object.compile (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:1342:43)
    at Module.m._compile (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:1474:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Object.require.extensions.<computed> [as .ts] (/Users/aednichols/Projects/studio/docs/example/node_modules/ts-node/src/index.ts:1478:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  diagnosticCodes: [ 7006, 7006 ]
}
@plegner
Copy link
Member

plegner commented Mar 26, 2022

We're really sorry for this bug and that it took a while to fix. Thanks for your help 😄

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

Successfully merging a pull request may close this issue.

2 participants