vercel / vercel/hyper

why side-by-side dont work?

Open
#7,066 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

npm run dev

hyper@3.4.0-canary.1 dev
concurrently -n "Webpack,TypeScript" -c "cyan.bold,blue.bold" "webpack -w" "tsc --build -v --pretty --watch --preserveWatchOutput" -k

[TypeScript] [11:11:23 PM] Starting compilation in watch mode...
[TypeScript]
[TypeScript] [11:11:23 PM] Projects in this build:
[TypeScript] * app/tsconfig.json
[TypeScript] * tsconfig.json
[TypeScript]
[TypeScript] [11:11:23 PM] Project 'app/tsconfig.json' is out of date because buildinfo file 'target/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted
[TypeScript]
[TypeScript] [11:11:23 PM] Building project '/Users/arturious/hyper/app/tsconfig.json'...
[TypeScript]
[TypeScript] app/auto-updater-linux.ts:1:19 - error TS2307: Cannot find module 'electron-fetch' or its corresponding type declarations.
[TypeScript]
[TypeScript] 1 import fetch from 'electron-fetch';
[TypeScript] ~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/config/paths.ts:6:19 - error TS2307: Cannot find module 'electron-is-dev' or its corresponding type declarations.
[TypeScript]
[TypeScript] 6 import isDev from 'electron-is-dev';
[TypeScript] ~~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/config/open.ts:3:27 - error TS2307: Cannot find module 'native-reg' or its corresponding type declarations.
[TypeScript]
[TypeScript] 3 import * as Registry from 'native-reg';
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/config/windows.ts:1:20 - error TS2307: Cannot find module 'electron-store' or its corresponding type declarations.
[TypeScript]
[TypeScript] 1 import Config from 'electron-store';
[TypeScript] ~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/plugins/install.ts:2:19 - error TS2307: Cannot find module 'queue' or its corresponding type declarations.
[TypeScript]
[TypeScript] 2 import queue from 'queue';
[TypeScript] ~~~~~~~
[TypeScript]
[TypeScript] app/plugins.ts:7:20 - error TS2307: Cannot find module 'electron-store' or its corresponding type declarations.
[TypeScript]
[TypeScript] 7 import Config from 'electron-store';
[TypeScript] ~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/utils/cli-install.ts:6:27 - error TS2307: Cannot find module 'native-reg' or its corresponding type declarations.
[TypeScript]
[TypeScript] 6 import * as Registry from 'native-reg';
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/utils/cli-install.ts:7:30 - error TS2307: Cannot find module 'native-reg' or its corresponding type declarations.
[TypeScript]
[TypeScript] 7 import type {ValueType} from 'native-reg';
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/utils/cli-install.ts:8:24 - error TS2307: Cannot find module 'sudo-prompt' or its corresponding type declarations.
[TypeScript]
[TypeScript] 8 import sudoPrompt from 'sudo-prompt';
[TypeScript] ~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/utils/system-context-menu.ts:1:27 - error TS2307: Cannot find module 'native-reg' or its corresponding type declarations.
[TypeScript]
[TypeScript] 1 import * as Registry from 'native-reg';
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/utils/system-context-menu.ts:2:25 - error TS2307: Cannot find module 'native-reg' or its corresponding type declarations.
[TypeScript]
[TypeScript] 2 import type {HKEY} from 'native-reg';
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/async-retry/index.d.ts:17:31 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
[TypeScript]
[TypeScript] 17 interface Options extends OperationOptions {
[TypeScript] ~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/notifications.ts:2:19 - error TS2307: Cannot find module 'electron-fetch' or its corresponding type declarations.
[TypeScript]
[TypeScript] 2 import fetch from 'electron-fetch';
[TypeScript] ~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/session.ts:7:62 - error TS2307: Cannot find module 'node-pty' or its corresponding type declarations.
[TypeScript]
[TypeScript] 7 import {IPty, IWindowsPtyForkOptions, spawn as npSpawn} from 'node-pty';
[TypeScript] ~~~~~~~~~~
[TypeScript]
[TypeScript] app/session.ts:10:22 - error TS2307: Cannot find module 'shell-env' or its corresponding type declarations.
[TypeScript]
[TypeScript] 10 import shellEnv from 'shell-env';
[TypeScript] ~~~~~~~~~~~
[TypeScript]
[TypeScript] app/session.ts:11:22 - error TS2307: Cannot find module 'os-locale' or its corresponding type declarations.
[TypeScript]
[TypeScript] 11 import osLocale from 'os-locale';
[TypeScript] ~~~~~~~~~~~
[TypeScript]
[TypeScript] app/ui/window.ts:5:19 - error TS2307: Cannot find module 'electron-is-dev' or its corresponding type declarations.
[TypeScript]
[TypeScript] 5 import isDev from 'electron-is-dev';
[TypeScript] ~~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/ui/window.ts:19:42 - error TS2307: Cannot find module 'native-process-working-directory' or its corresponding type declarations.
[TypeScript]
[TypeScript] 19 import {getWorkingDirectoryFromPID} from 'native-process-working-directory';
[TypeScript] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] app/index.ts:22:19 - error TS2307: Cannot find module 'electron-is-dev' or its corresponding type declarations.
[TypeScript]
[TypeScript] 22 import isDev from 'electron-is-dev';
[TypeScript] ~~~~~~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:26:42 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 26 cb?: (response: ServerResponse | ResponseLike) => void
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:77:51 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 77 listener: (response: ServerResponse | ResponseLike) => void
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:81:69 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 81 on(event: 'response', listener: (response: ServerResponse | ResponseLike) => void): this;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:84:71 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 84 once(event: 'response', listener: (response: ServerResponse | ResponseLike) => void): this;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:89:51 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 89 listener: (response: ServerResponse | ResponseLike) => void
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:95:51 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 95 listener: (response: ServerResponse | ResponseLike) => void
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:104:51 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 104 listener: (response: ServerResponse | ResponseLike) => void
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:108:70 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 108 off(event: 'response', listener: (response: ServerResponse | ResponseLike) => void): this;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:112:73 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 112 listeners(event: 'response'): Array<(response: ServerResponse | ResponseLike) => void>;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:115:76 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 115 rawListeners(event: 'response'): Array<(response: ServerResponse | ResponseLike) => void>;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] node_modules/@types/cacheable-request/index.d.ts:118:60 - error TS2709: Cannot use namespace 'ResponseLike' as a type.
[TypeScript]
[TypeScript] 118 emit(event: 'response', response: ServerResponse | ResponseLike): boolean;
[TypeScript] ~~~~~~~~~~~~
[TypeScript]
[TypeScript] [11:11:24 PM] Project 'tsconfig.json' can't be built because its dependency 'app/tsconfig.json' has errors
[TypeScript]
[TypeScript] [11:11:24 PM] Skipping build of project '/Users/arturious/hyper/tsconfig.json' because its dependency '/Users/arturious/hyper/app/tsconfig.json' has errors
[TypeScript]
[TypeScript] [11:11:24 PM] Found 30 errors. Watching for file changes.
[TypeScript]
[Webpack] hyper-app:
[Webpack] assets by path keymaps/.json 4.49 KiB
[Webpack] asset keymaps/darwin.json 1.57 KiB [compared for emit] [from: app/keymaps/darwin.json] [copied]
[Webpack] asset keymaps/linux.json 1.52 KiB [compared for emit] [from: app/keymaps/linux.json] [copied]
[Webpack] asset keymaps/win32.json 1.4 KiB [compared for emit] [from: app/keymaps/win32.json] [copied]
[Webpack] assets by path static/
.png 10.5 KiB
[Webpack] asset static/icon96x96.png 5.72 KiB [compared for emit] [from: app/static/icon96x96.png] [copied]
[Webpack] asset static/icon.png 4.78 KiB [compared for emit] [from: app/static/icon.png] [copied]
[Webpack] assets by path .json 1.21 KiB
[Webpack] asset package.json 1020 bytes [compared for emit] [from: app/package.json] [copied]
[Webpack] asset tsconfig.json 224 bytes [compared for emit] [from: app/tsconfig.json] [copied]
[Webpack] asset yarn.lock 37 KiB [compared for emit] [from: app/yarn.lock] [copied]
[Webpack] asset index.html 836 bytes [compared for emit] [from: app/index.html] [copied]
[Webpack] asset ignore_this.js 84 bytes [compared for emit] (name: main)
[Webpack] ./app/index.ts 1 bytes [built] [code generated]
[Webpack] hyper-app (webpack 5.74.0) compiled successfully in 679 ms
[Webpack]
[Webpack] hyper:
[Webpack] asset bundle.js 379 KiB [compared for emit] (name: main) 1 related asset
[Webpack] asset assets/icons.svg 3.26 KiB [compared for emit] [from: assets/icons.svg] [copied]
[Webpack] asset assets/search-icons.svg 1.12 KiB [compared for emit] [from: assets/search-icons.svg] [copied]
[Webpack] orphan modules 15.9 KiB [orphan] 10 modules
[Webpack] runtime modules 937 bytes 4 modules
[Webpack] cacheable modules 305 KiB
[Webpack] modules by path ./lib/ 244 KiB 55 modules
[Webpack] modules by path ./node_modules/ 60.2 KiB 16 modules
[Webpack] modules by path external "require(/"./node_modules/ 966 bytes
[Webpack] external "require("./node_modules/react-deep-force-update/lib/index.js")" 42 bytes [built] [code generated]
[Webpack] external "require("./node_modules/react-redux/lib/index.js")" 42 bytes [built] [code generated]
[Webpack] external "require("./node_modules/react/index.js")" 42 bytes [built] [code generated]
[Webpack] + 20 modules
[Webpack] + 6 modules
[Webpack] hyper (webpack 5.74.0) compiled successfully in 1170 ms
[Webpack]
[Webpack] hyper-cli:
[Webpack] asset cli.js 1.46 MiB [compared for emit] (name: main) 1 related asset
[Webpack] runtime modules 1.04 KiB 5 modules
[Webpack] orphan modules 209 bytes [orphan] 4 modules
[Webpack] modules by path ./node_modules/ 1.38 MiB
[Webpack] cacheable modules 1.38 MiB 232 modules
[Webpack] ./node_modules/args/lib/ sync 160 bytes [built] [code generated]
[Webpack] ./node_modules/keyv/src/ sync 160 bytes [built] [code generated]
[Webpack] modules by path ./cli/
.ts 11.4 KiB
[Webpack] ./cli/index.ts 6.07 KiB [built] [code generated]
[Webpack] ./cli/api.ts 5.33 KiB [built] [code generated]
[Webpack] + 32 modules
[Webpack]
[Webpack] WARNING in ./node_modules/args/lib/version.js 18:11-24
[Webpack] Critical dependency: the request of a dependency is an expression
[Webpack] @ ./node_modules/args/lib/index.js 14:15-35
[Webpack] @ ./cli/index.ts 9:0-24 52:0-12 58:0-12 64:0-12 91:0-12 110:0-12 121:0-12 129:0-12 133:0-12 134:0-11 137:16-26 164:16-28
[Webpack]
[Webpack] WARNING in ./cli/index.ts 130:14-21
[Webpack] Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon)
[Webpack]
[Webpack] WARNING in ./node_modules/keyv/src/index.js 22:14-40
[Webpack] Critical dependency: the request of a dependency is an expression
[Webpack] @ ./node_modules/cacheable-request/src/index.js 11:13-28
[Webpack] @ ./node_modules/got/dist/source/core/index.js 7:0-49 824:42-58 971:33-60
[Webpack] @ ./node_modules/got/dist/source/index.js 14:0-32 14:0-32
[Webpack] @ ./cli/index.ts 13:0-22 80:9-12
[Webpack]
[Webpack] 2 warnings have detailed information that is not shown.
[Webpack] Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
[Webpack]
[Webpack] hyper-cli (webpack 5.74.0) compiled with 3 warnings in 1285 ms

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running npm run dev and inspect the TypeScript errors from app/tsconfig.json and tsconfig.json. Compare the missing modules and type declarations with the generated app/package.json and app/yarn.lock; done means the watch build completes without these errors and the side-by-side development workflow runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript, webpack
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.