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

npm run build error #535

Closed
gxdung opened this issue Sep 13, 2024 · 1 comment
Closed

npm run build error #535

gxdung opened this issue Sep 13, 2024 · 1 comment
Assignees
Labels

Comments

@gxdung
Copy link

gxdung commented Sep 13, 2024

packages/eez-studio-shared/db.ts(148,27): error TS18047: 'versionRow' is possibly 'null'.
packages/eez-studio-shared/db.ts(148,38): error TS2339: Property 'version' does not exist on type '{}'.
packages/eez-studio-shared/db.ts(338,36): error TS18046: 'row' is of type 'unknown'.
packages/eez-studio-shared/db.ts(339,33): error TS18046: 'row' is of type 'unknown'.
packages/eez-studio-shared/db.ts(361,36): error TS18046: 'row' is of type 'unknown'.
packages/eez-studio-shared/db.ts(362,33): error TS18046: 'row' is of type 'unknown'.
packages/eez-studio-shared/db.ts(391,21): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(405,43): error TS18046: 'sourceInstrument' is of type 'unknown'.
packages/eez-studio-shared/db.ts(410,32): error TS18046: 'sourceInstrument' is of type 'unknown'.
packages/eez-studio-shared/db.ts(435,52): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(444,31): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(447,36): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(448,55): error TS2339: Property 'id' does not exist on type '{}'.
packages/eez-studio-shared/db.ts(461,47): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(466,36): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(479,53): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(485,25): error TS18046: 'sourceShortcut' is of type 'unknown'.
packages/eez-studio-shared/db.ts(505,43): error TS18046: 'sourceShortcut' is of type 'unknown'.
packages/eez-studio-shared/db.ts(537,46): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(557,36): error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator.
packages/eez-studio-shared/db.ts(559,44): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(561,33): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(563,50): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(566,62): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(574,50): error TS18046: 'logsCountRow' is of type 'unknown'.
packages/eez-studio-shared/db.ts(646,27): error TS18046: 'sourceInstrument' is of type 'unknown'.
packages/eez-studio-shared/db.ts(690,21): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(704,43): error TS18046: 'sourceInstrument' is of type 'unknown'.
packages/eez-studio-shared/db.ts(709,32): error TS18046: 'sourceInstrument' is of type 'unknown'.
packages/eez-studio-shared/db.ts(722,52): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(731,31): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(734,36): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(735,55): error TS2339: Property 'id' does not exist on type '{}'.
packages/eez-studio-shared/db.ts(748,47): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(753,36): error TS18046: 'sourceSession' is of type 'unknown'.
packages/eez-studio-shared/db.ts(766,53): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(772,25): error TS18046: 'sourceShortcut' is of type 'unknown'.
packages/eez-studio-shared/db.ts(792,43): error TS18046: 'sourceShortcut' is of type 'unknown'.
packages/eez-studio-shared/db.ts(818,46): error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'object'.
packages/eez-studio-shared/db.ts(838,36): error TS2488: Type 'unknown' must have a '[Symbol.iterator]()' method that returns an iterator.
packages/eez-studio-shared/db.ts(840,44): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(842,33): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(844,50): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(847,62): error TS18046: 'log' is of type 'unknown'.
packages/eez-studio-shared/db.ts(855,50): error TS18046: 'logsCountRow' is of type 'unknown'.
packages/home/instruments/deleted-instruments-dialog.tsx(48,48): error TS18046: 'result' is of type 'unknown'.
packages/home/instruments/import-dialog.tsx(28,31): error TS2571: Object is of type 'unknown'.
packages/instrument/connection/plotter.ts(57,13): error TS2322: Type 'unknown[]' is not assignable to type '{ message: string; date: Date; }[]'.
  Type 'unknown' is not assignable to type '{ message: string; date: Date; }'.
packages/instrument/connection/plotter.ts(319,22): error TS18046: 'row' is of type 'unknown'.
packages/instrument/instrument-object.ts(1134,25): error TS18046: 'instrument' is of type 'unknown'.
packages/instrument/window/history/activity-log.ts(311,25): error TS18046: 'session' is of type 'unknown'.
packages/instrument/window/history/activity-log.ts(470,23): error TS2339: Property 'recordHistory' does not exist on type '{}'.
packages/instrument/window/history/activity-log.ts(491,9): error TS2322: Type 'unknown[]' is not assignable to type 'IActivityLogEntry[]'.
  Type 'unknown' is not assignable to type 'IActivityLogEntry'.
packages/instrument/window/history/activity-log.ts(542,39): error TS2339: Property 'data' does not exist on type '{}'.
packages/instrument/window/history/history.ts(704,13): error TS2322: Type 'unknown' is not assignable to type 'boolean'.
packages/instrument/window/history/history.ts(704,53): error TS2339: Property 'count' does not exist on type '{}'.
packages/instrument/window/history/history.ts(736,13): error TS2322: Type 'unknown' is not assignable to type 'boolean'.
packages/instrument/window/history/history.ts(736,53): error TS2339: Property 'count' does not exist on type '{}'.
packages/instrument/window/history/history.ts(1622,56): error TS2339: Property 'count' does not exist on type '{}'.
packages/instrument/window/history/session/store.ts(264,41): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Partial<IActivityLogEntry>'.
packages/instrument/window/history/session/store.ts(321,36): error TS2339: Property 'date' does not exist on type '{}'.
packages/notebook/export.tsx(79,34): error TS2339: Property 'id' does not exist on type '{}'.
packages/notebook/export.tsx(84,36): error TS2339: Property 'instrumentExtensionId' does not exist on type '{}'.
packages/notebook/export.tsx(85,36): error TS2339: Property 'label' does not exist on type '{}'.
packages/notebook/export.tsx(86,36): error TS2339: Property 'idn' does not exist on type '{}'.
packages/notebook/export.tsx(88,55): error TS2339: Property 'instrumentExtensionId' does not exist on type '{}'.
packages/notebook/store.ts(122,51): error TS2339: Property 'id' does not exist on type '{}'.
packages/notebook/store.ts(147,30): error TS2339: Property 'id' does not exist on type '{}'.
packages/notebook/store.ts(150,28): error TS2339: Property 'instrumentExtensionId' does not exist on type '{}'.
packages/notebook/store.ts(151,28): error TS2339: Property 'label' does not exist on type '{}'.
packages/notebook/store.ts(152,28): error TS2339: Property 'idn' does not exist on type '{}'.
packages/notebook/store.ts(154,24): error TS2339: Property 'instrumentExtensionId' does not exist on type '{}'.
packages/notebook/store.ts(171,9): error TS2322: Type 'unknown' is not assignable to type 'INotebookItemSource | null'.
packages/project-editor/features/font/font-extract/opentype.ts(115,25): error TS18048: 'glyph.advanceWidth' is possibly 'undefined'.
packages/project-editor/lvgl/Page.tsx(70,18): error TS2741: Property 'forwardedRef' is missing in type '{ ref: RefObject<HTMLCanvasElement>; width: number; height: number; flowContext: IFlowContext; }' but required in type 'LVGLPageCanvasProps'.
packages/project-editor/ui-components/Tree.tsx(383,42): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(397,41): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(400,43): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(499,63): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(562,51): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(598,62): error TS2532: Object is possibly 'undefined'.
packages/project-editor/ui-components/Tree.tsx(758,38): error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type 'HTMLElement | undefined' is not assignable to parameter of type 'PlainObject<any>'.
      Type 'undefined' is not assignable to type 'PlainObject<any>'.
packages/project-editor/ui-components/Tree.tsx(758,52): error TS2339: Property 'attr' does not exist on type 'JQueryStatic'.

@mvladic
Copy link
Contributor

mvladic commented Sep 13, 2024

This is probably problem with the wrong version of TypeScript compiler. If you have TypeScript compiler installed globally, make sure it is version 5.5.3. You can check your TypeScript compiler version inside studio directory by running npm run tsc-version:

image

@mvladic mvladic closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants