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

Error when running npm build #46

Open
Praveit opened this issue Oct 9, 2023 · 0 comments
Open

Error when running npm build #46

Praveit opened this issue Oct 9, 2023 · 0 comments

Comments

@Praveit
Copy link

Praveit commented Oct 9, 2023

@Praveit ➜ /workspaces/Velocity (main) $ npm install

up to date, audited 783 packages in 1s

105 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
@Praveit ➜ /workspaces/Velocity (main) $ npm install

up to date, audited 783 packages in 1s

105 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
@Praveit ➜ /workspaces/Velocity (main) $ git clone https://github.com/cohenerickson/Velocity.gt
Cloning into 'Velocity.gt'...
remote: Repository not found.
fatal: repository 'https://github.com/cohenerickson/Velocity.gt/' not found
@Praveit ➜ /workspaces/Velocity (main) $ git clone https://github.com/cohenerickson/Velocity.git
fatal: destination path 'Velocity' already exists and is not an empty directory.
@Praveit ➜ /workspaces/Velocity (main) $ npm i

up to date, audited 783 packages in 1s

105 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
@Praveit ➜ /workspaces/Velocity (main) $ npm run build

[email protected] build
webpack --mode production && solid-start build

assets by status 2.76 MiB [cached] 2 assets
orphan modules 51.6 KiB [orphan] 34 modules
runtime modules 6.36 KiB 12 modules
cacheable modules 1.55 MiB
modules by path ./node_modules/ 1.5 MiB 51 modules
modules by path ./src/ 49.2 KiB
modules by path ./src/addon/api/.ts 42.6 KiB 9 modules
modules by path ./src/addon/
.ts 2.68 KiB
./src/addon/worker.ts 973 bytes [built] [code generated]
+ 2 modules
modules by path ./src/addon/util/*.ts 2.93 KiB
./src/addon/util/bindingUtil.ts 2.2 KiB [built] [code generated]
+ 2 modules
./src/addon/types/EventManager.ts 620 bytes [built] [code generated]
./src/util/fs.ts 309 bytes [built] [code generated]

ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts
51:18-39
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts(51,19)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Keybind[]) => Keybind[]): Keybind[]', gave the following error.
Argument of type '(this | Keybind)[]' is not assignable to parameter of type '(prev: Keybind[]) => Keybind[]'.
Type '(this | Keybind)[]' provides no match for the signature '(prev: Keybind[]): Keybind[]'.

ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts
54:8-68:10
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts(54,9)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Keybind[]) => Keybind[]): Keybind[]', gave the following error.
Argument of type 'Keybind[]' is not assignable to parameter of type '(prev: Keybind[]) => Keybind[]'.
Type 'Keybind[]' provides no match for the signature '(prev: Keybind[]): Keybind[]'.
Overload 2 of 3, '(value: Keybind[]): Keybind[]', gave the following error.
Argument of type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default[]' is not assignable to parameter of type 'import("/workspaces/Velocity/src/api/Keybind").default[]'.
Type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default' is not assignable to type 'import("/workspaces/Velocity/src/api/Keybind").default'.
Property '#init' in type 'Keybind' refers to a different member that cannot be accessed from within type 'Keybind'.
Overload 3 of 3, '(value: Keybind[] | ((prev: Keybind[]) => Keybind[])): Keybind[]', gave the following error.
Argument of type 'Keybind[]' is not assignable to parameter of type 'Keybind[] | ((prev: Keybind[]) => Keybind[])'.
Type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default[]' is not assignable to type 'import("/workspaces/Velocity/src/api/Keybind").default[]'.

ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts
54:23-46
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts(54,24)
TS2345: Argument of type '(keybind: Keybind) => Keybind' is not assignable to parameter of type '(value: Keybind, index: number, array: Keybind[]) => Keybind'.
Types of parameters 'keybind' and 'value' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Keybind").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default'.
Property '#init' in type 'Keybind' refers to a different member that cannot be accessed from within type 'Keybind'.

ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts
71:13-73:18
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts(71,14)
TS2352: Conversion of type 'Keybind | undefined' to type 'Keybind' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'import("/workspaces/Velocity/src/api/Keybind").default' is not comparable to type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default'.
Property '#init' in type 'Keybind' refers to a different member that cannot be accessed from within type 'Keybind'.

ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts
72:8-55
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Keybind.ts(72,9)
TS2769: No overload matches this call.
Overload 1 of 2, '(predicate: (this: void, value: Keybind, index: number, obj: Keybind[]) => value is Keybind, thisArg?: any): Keybind | undefined', gave the following error.
Argument of type '(keybind: Keybind) => boolean' is not assignable to parameter of type '(this: void, value: Keybind, index: number, obj: Keybind[]) => value is Keybind'.
Types of parameters 'keybind' and 'value' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Keybind").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default'.
Overload 2 of 2, '(predicate: (value: Keybind, index: number, obj: Keybind[]) => unknown, thisArg?: any): Keybind | undefined', gave the following error.
Argument of type '(keybind: Keybind) => boolean' is not assignable to parameter of type '(value: Keybind, index: number, obj: Keybind[]) => unknown'.
Types of parameters 'keybind' and 'value' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Keybind").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Keybind").default'.

ERROR in /workspaces/Velocity/Velocity/src/api/Popup.ts
90:14-33
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Popup.ts(90,15)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Popup[]) => Popup[]): Popup[]', gave the following error.
Argument of type '(this | Popup)[]' is not assignable to parameter of type '(prev: Popup[]) => Popup[]'.
Type '(this | Popup)[]' provides no match for the signature '(prev: Popup[]): Popup[]'.

ERROR in /workspaces/Velocity/Velocity/src/api/Popup.ts
95:41-55
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Popup.ts(95,42)
TS2367: This comparison appears to be unintentional because the types 'Popup' and 'this' have no overlap.

ERROR in /workspaces/Velocity/Velocity/src/api/Protocol.ts
12:17-39
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Protocol.ts(12,18)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Protocol[]) => Protocol[]): Protocol[]', gave the following error.
Argument of type '(this | Protocol)[]' is not assignable to parameter of type '(prev: Protocol[]) => Protocol[]'.
Type '(this | Protocol)[]' provides no match for the signature '(prev: Protocol[]): Protocol[]'.

ERROR in /workspaces/Velocity/Velocity/src/api/RuntimeModifier.ts
16:13-17
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/RuntimeModifier.ts(16,14)
TS2345: Argument of type 'this' is not assignable to parameter of type 'RuntimeModifier'.
Type 'import("/workspaces/Velocity/Velocity/src/api/RuntimeModifier").default' is not assignable to type 'import("/workspaces/Velocity/src/api/RuntimeModifier").default'.
Property '#injects' in type 'RuntimeModifier' refers to a different member that cannot be accessed from within type 'RuntimeModifier'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
33:35-39
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(33,36)
TS2345: Argument of type 'this' is not assignable to parameter of type 'Tab'.
Type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default' is not assignable to type 'import("/workspaces/Velocity/src/api/Tab").default'.
Property '#pinned' in type 'Tab' refers to a different member that cannot be accessed from within type 'Tab'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
40:24-28
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(40,25)
TS2345: Argument of type 'this' is not assignable to parameter of type 'Tab'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
50:12-29
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(50,13)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Tab[]) => Tab[]): Tab[]', gave the following error.
Argument of type '(this | Tab)[]' is not assignable to parameter of type '(prev: Tab[]) => Tab[]'.
Type '(this | Tab)[]' provides no match for the signature '(prev: Tab[]): Tab[]'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
53:18-48
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(53,19)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Set) => Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type '(prev: Set) => Set'.
Type 'Set<this | Tab>' provides no match for the signature '(prev: Set): Set'.
Overload 2 of 3, '(value: Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set'.
Type 'this | Tab' is not assignable to type 'Tab'.
Type 'this' is not assignable to type 'Tab'.
Overload 3 of 3, '(value: Set | ((prev: Set) => Set)): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set | ((prev: Set) => Set)'.
Type 'Set<this | Tab>' is not assignable to type 'Set'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
55:18-48
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(55,19)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Set) => Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type '(prev: Set) => Set'.
Overload 2 of 3, '(value: Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set'.
Overload 3 of 3, '(value: Set | ((prev: Set) => Set)): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set | ((prev: Set) => Set)'.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
103:63-75
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(103,64)
TS2367: This comparison appears to be unintentional because the types 'Tab' and 'this' have no overlap.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
104:35-47
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(104,36)
TS2367: This comparison appears to be unintentional because the types 'Tab' and 'this' have no overlap.

ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts
247:18-48
[tsl] ERROR in /workspaces/Velocity/Velocity/src/api/Tab.ts(247,19)
TS2769: No overload matches this call.
Overload 1 of 3, '(value: (prev: Set) => Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type '(prev: Set) => Set'.
Overload 2 of 3, '(value: Set): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set'.
Overload 3 of 3, '(value: Set | ((prev: Set) => Set)): Set', gave the following error.
Argument of type 'Set<this | Tab>' is not assignable to parameter of type 'Set | ((prev: Set) => Set)'.

ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx
23:8-45
[tsl] ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx(23,9)
TS2345: Argument of type '(tab: Tab) => boolean' is not assignable to parameter of type '(value: Tab, index: number, obj: Tab[]) => unknown'.
Types of parameters 'tab' and 'value' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.
Property '#pinned' in type 'Tab' refers to a different member that cannot be accessed from within type 'Tab'.

ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx
26:8-45
[tsl] ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx(26,9)
TS2345: Argument of type '(tab: Tab) => boolean' is not assignable to parameter of type '(value: Tab, index: number, obj: Tab[]) => unknown'.
Types of parameters 'tab' and 'value' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx
89:14-96:16
[tsl] ERROR in /workspaces/Velocity/Velocity/src/components/Tabs.tsx(89,15)
TS2322: Type '(tab: Tab) => JSX.Element' is not assignable to type '(item: Tab, index: Accessor) => Element'.
Types of parameters 'tab' and 'item' are incompatible.
Type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/Velocity/src/manager/bookmarkManager.ts
54:35-58
[tsl] ERROR in /workspaces/Velocity/Velocity/src/manager/bookmarkManager.ts(54,36)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts
66:34-37
[tsl] ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts(66,35)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts
89:40-43
[tsl] ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts(89,41)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts
100:40-43
[tsl] ERROR in /workspaces/Velocity/Velocity/src/manager/tabManager.ts(100,41)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/src/api/index.ts
45:6-14
[tsl] ERROR in /workspaces/Velocity/src/api/index.ts(45,7)
TS2403: Subsequent variable declarations must have the same type. Variable 'Velocity' must be of type '{ Tab: typeof Tab; getTabs: Accessor<Tab[]>; Protocol: typeof Protocol; getProtocols: Accessor<Protocol[]>; ContextItem: typeof ContextItem; ... 13 more ...; bookmarks: typeof import("/workspaces/Velocity/Velocity/src/addon/api/bookmarks"); }', but here has type '{ Tab: typeof Tab; getTabs: Accessor<Tab[]>; Protocol: typeof Protocol; getProtocols: Accessor<Protocol[]>; ContextItem: typeof ContextItem; ... 13 more ...; bookmarks: typeof import("/workspaces/Velocity/src/addon/api/bookmarks"); }'.

ERROR in /workspaces/Velocity/src/api/index.ts
47:4-12
[tsl] ERROR in /workspaces/Velocity/src/api/index.ts(47,5)
TS2717: Subsequent property declarations must have the same type. Property 'Velocity' must be of type '{ Tab: typeof Tab; getTabs: Accessor<Tab[]>; Protocol: typeof Protocol; getProtocols: Accessor<Protocol[]>; ContextItem: typeof ContextItem; ... 13 more ...; bookmarks: typeof import("/workspaces/Velocity/Velocity/src/addon/api/bookmarks"); }', but here has type '{ Tab: typeof Tab; getTabs: Accessor<Tab[]>; Protocol: typeof Protocol; getProtocols: Accessor<Protocol[]>; ContextItem: typeof ContextItem; ... 13 more ...; bookmarks: typeof import("/workspaces/Velocity/src/addon/api/bookmarks"); }'.

ERROR in /workspaces/Velocity/src/api/index.ts
50:0-19
[tsl] ERROR in /workspaces/Velocity/src/api/index.ts(50,1)
TS2322: Type '{ Tab: typeof import("/workspaces/Velocity/src/api/Tab").default; getTabs: import("/workspaces/Velocity/node_modules/solid-js/types/reactive/signal").Accessor<import("/workspaces/Velocity/src/api/Tab").default[]>; ... 16 more ...; bookmarks: typeof import("/workspaces/Velocity/src/addon/api/bookmarks"); }' is not assignable to type '{ Tab: typeof import("/workspaces/Velocity/Velocity/src/api/Tab").default; getTabs: import("/workspaces/Velocity/node_modules/solid-js/types/reactive/signal").Accessor<import("/workspaces/Velocity/src/api/Tab").default[]>; ... 16 more ...; bookmarks: typeof import("/workspaces/Velocity/Velocity/src/addon/api/bookmar...'.
Types of property 'Tab' are incompatible.
Types of construct signatures are incompatible.
Type 'new (url?: string | undefined, isActive?: boolean | undefined) => Tab' is not assignable to type 'new (url?: string | undefined, isActive?: boolean | undefined) => Tab'.
Type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/src/api/index.ts
51:26-41
[tsl] ERROR in /workspaces/Velocity/src/api/index.ts(51,27)
TS2322: Type '{ Tab: typeof import("/workspaces/Velocity/src/api/Tab").default; getTabs: import("/workspaces/Velocity/node_modules/solid-js/types/reactive/signal").Accessor<import("/workspaces/Velocity/src/api/Tab").default[]>; ... 16 more ...; bookmarks: typeof import("/workspaces/Velocity/src/addon/api/bookmarks"); }' is not assignable to type '{ Tab: typeof import("/workspaces/Velocity/Velocity/src/api/Tab").default; getTabs: import("/workspaces/Velocity/node_modules/solid-js/types/reactive/signal").Accessor<import("/workspaces/Velocity/src/api/Tab").default[]>; ... 16 more ...; bookmarks: typeof import("/workspaces/Velocity/Velocity/src/addon/api/bookmar...'.

ERROR in /workspaces/Velocity/src/manager/bookmarkManager.ts
54:35-58
[tsl] ERROR in /workspaces/Velocity/src/manager/bookmarkManager.ts(54,36)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/src/manager/tabManager.ts
66:34-37
[tsl] ERROR in /workspaces/Velocity/src/manager/tabManager.ts(66,35)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/src/manager/tabManager.ts
89:40-43
[tsl] ERROR in /workspaces/Velocity/src/manager/tabManager.ts(89,41)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

ERROR in /workspaces/Velocity/src/manager/tabManager.ts
100:40-43
[tsl] ERROR in /workspaces/Velocity/src/manager/tabManager.ts(100,41)
TS2345: Argument of type 'import("/workspaces/Velocity/src/api/Tab").default' is not assignable to parameter of type 'import("/workspaces/Velocity/Velocity/src/api/Tab").default'.

32 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.88.2 compiled with 32 errors in 12973 ms
@Praveit ➜ /workspaces/Velocity (main) $ npm start

[email protected] start
node scripts/server.js

Velocity listening on http://localhost:3000/
Error: ENOENT: no such file or directory, stat '/workspaces/Velocity/dist/public/index.html'

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