Distribution (run cat /etc/os-release):
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux
Related Application and/or Package Version (run apt policy pop-shell or provide the latest commit if building locally):
https://github.com/pop-os/shell/commit/fe1257104b2e3d3db3ae1d2f675df95b1b018b25
Issue/Bug Description:
I get multiple errors while trying to build this.
Typescript version 3.8.3
Gnome-shell version 3.36.2
src/extension.ts:24:15 - error TS2305: Module '"events"' has no exported member 'ExtEvent'.
24 import type { ExtEvent } from 'events';
~~~~~~~~
src/extension.ts:31:9 - error TS2339: Property 'GlobalEvent' does not exist on type 'typeof internal'.
31 const { GlobalEvent, WindowEvent } = Events;
~~~~~~~~~~~
src/extension.ts:31:22 - error TS2339: Property 'WindowEvent' does not exist on type 'typeof internal'.
31 const { GlobalEvent, WindowEvent } = Events;
~~~~~~~~~~~
src/extension.ts:172:34 - error TS2339: Property 'global' does not exist on type 'typeof internal'.
172 this.register(Events.global(GlobalEvent.GtkThemeChanged));
~~~~~~
src/extension.ts:333:38 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
333 this.register(Events.window_event(win, WindowEvent.Size));
~~~~~~~~~~~~
src/extension.ts:336:38 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
336 this.register(Events.window_event(win, WindowEvent.Size));
~~~~~~~~~~~~
src/extension.ts:339:38 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
339 this.register(Events.window_event(win, WindowEvent.Workspace));
~~~~~~~~~~~~
src/extension.ts:342:38 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
342 this.register(Events.window_event(win, WindowEvent.Minimize));
~~~~~~~~~~~~
src/extension.ts:926:42 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
926 this.register(Events.window_event(win, WindowEvent.Maximize));
~~~~~~~~~~~~
src/extension.ts:928:42 - error TS2339: Property 'window_event' does not exist on type 'typeof internal'.
928 this.register(Events.window_event(win, WindowEvent.Fullscreen));
~~~~~~~~~~~~
src/extension.ts:951:34 - error TS2339: Property 'global' does not exist on type 'typeof internal'.
951 this.register(Events.global(GlobalEvent.MonitorsChanged));
~~~~~~
src/extension.ts:955:34 - error TS2339: Property 'global' does not exist on type 'typeof internal'.
955 this.register(Events.global(GlobalEvent.MonitorsChanged));
~~~~~~
src/extension.ts:963:34 - error TS2339: Property 'global' does not exist on type 'typeof internal'.
963 this.register(Events.global(GlobalEvent.OverviewShown));
~~~~~~
src/extension.ts:967:34 - error TS2339: Property 'global' does not exist on type 'typeof internal'.
967 this.register(Events.global(GlobalEvent.OverviewHidden));
~~~~~~
src/mod.d.ts:1:15 - error TS2451: Cannot redeclare block-scoped variable 'global'.
1 declare const global: any,
~~~~~~
../../node_modules/@types/node/globals.d.ts:163:13
163 declare var global: NodeJS.Global;
~~~~~~
'global' was also declared here.
../../node_modules/@types/node/globals.d.ts:163:13 - error TS2451: Cannot redeclare block-scoped variable 'global'.
163 declare var global: NodeJS.Global;
~~~~~~
src/mod.d.ts:1:15
1 declare const global: any,
~~~~~~
'global' was also declared here.
../../node_modules/@types/react/index.d.ts:34:22 - error TS2307: Cannot find module 'csstype'.
34 import * as CSS from 'csstype';
Steps to reproduce (if you know):
make all
You have an installation of node_modules which is conflicting.
You have an installation of
node_moduleswhich is conflicting.
sorry i know nothing about ts, how to solve this?
Most helpful comment
sorry i know nothing about ts, how to solve this?