Failed to Compile from Windows 10
KeitoTobi1 opened this issue · comments
Describe the bug
VoTT building from source error Windows 10.
To Reproduce
Steps to reproduce the behavior:
Install Node.js v14
Download VoTT v.2.2.0 Source Code
"@tensorflow/tfjs": "^3.4.0"
"node-sass": "^4.14.0"
"typescript": "^3.9.9"
npm ci
npm start
Expected behavior
Building of VoTT
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows
Additional context
11:53:39 electron.1 | > vott@2.2.0 electron-start C:\Source\VoTT
11:53:39 electron.1 | > node src/electron/start
11:53:39 react.1 | > vott@2.2.0 react-start C:\Source\VoTT
11:53:39 react.1 | > react-scripts start
11:53:41 react.1 | Starting the development server...
11:53:42 electron.1 | starting electron
11:53:43 electron.1 | > vott@2.2.0 electron:run:dev C:\Source\VoTT
11:53:43 electron.1 | > npm run webpack:dev && electron . --remote-debugging-port=9223
11:53:43 react.1 | Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
11:53:44 electron.1 | > vott@2.2.0 webpack:dev C:\Source\VoTT
11:53:44 electron.1 | > webpack --config ./config/webpack.dev.js
11:53:57 react.1 | Failed to compile.
11:53:57 react.1 | C:/Source/VoTT/node_modules/@types/node/index.d.ts
11:53:57 react.1 | Type error: Duplicate identifier 'IteratorResult'. TS2300
11:53:57 react.1 | 176 | next(value?: any): IteratorResult<T>;
11:53:57 react.1 | 177 | }
11:53:57 react.1 | > 178 | interface IteratorResult<T> { }
11:53:57 react.1 | | ^
11:53:57 react.1 | 179 | interface AsyncIterableIterator<T> {}
11:53:57 react.1 | 180 | interface SymbolConstructor {
11:53:57 react.1 | 181 | readonly observable: symbol;
11:54:02 electron.1 | Hash: e8f7e919a25bffff8975
11:54:02 electron.1 | Version: webpack 4.19.1
11:54:02 electron.1 | Time: 17388ms
11:54:02 electron.1 | Built at: 2021/04/16 11:54:02
11:54:02 electron.1 | Asset Size Chunks Chunk Names
11:54:02 electron.1 | main.js 3.67 MiB main [emitted] main
11:54:02 electron.1 | Entrypoint main = main.js
11:54:02 electron.1 | [./src/common/appInfo.ts] 178 bytes {main} [built]
11:54:02 electron.1 | [./src/common/constants.ts] 210 bytes {main} [built]
11:54:02 electron.1 | [./src/common/guard.ts] 1.65 KiB {main} [built]
11:54:02 electron.1 | [./src/common/htmlFileReader.ts] 7.32 KiB {main} [built]
11:54:02 electron.1 | [./src/common/localization/en-us.ts] 18.1 KiB {main} [built]
11:54:02 electron.1 | [./src/common/localization/es-cl.ts] 19.6 KiB {main} [built]
11:54:02 electron.1 | [./src/common/strings.ts] 1.58 KiB {main} [built]
11:54:02 electron.1 | [./src/electron/common/ipcMainProxy.ts] 2.23 KiB {main} [built]
11:54:02 electron.1 | [./src/electron/main.ts] 4.81 KiB {main} [built]
11:54:02 electron.1 | [./src/electron/providers/storage/localFileSystem.ts] 6.68 KiB {main} [built]
11:54:02 electron.1 | [./src/models/applicationState.ts] 4.21 KiB {main} [built]
11:54:02 electron.1 | [./src/services/assetService.ts] 12.6 KiB {main} [built]
11:54:02 electron.1 | [electron] external "electron" 42 bytes {main} [built]
11:54:02 electron.1 | [fs] external "fs" 42 bytes {main} [built]
11:54:02 electron.1 | [path] external "path" 42 bytes {main} [built]
11:54:02 electron.1 | + 140 hidden modules
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx(75,45)
11:54:02 electron.1 | TS2345: Argument of type '{ formData: { modelPathType: ModelPathType; }; }' is not assignable to parameter of type 'IChangeEvent<unknown>'.
11:54:02 electron.1 | Type '{ formData: { modelPathType: ModelPathType; }; }' is missing the following properties from type 'IChangeEvent<unknown>': edit, errors, errorSchema, idSchema, and 2 more.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx(77,45)
11:54:02 electron.1 | TS2345: Argument of type '{ formData: IActiveLearningSettings; }'
is not assignable to parameter of type 'IChangeEvent<unknown>'.
11:54:02 electron.1 | Type '{ formData: IActiveLearningSettings; }' is missing the following properties from type 'IChangeEvent<unknown>': edit, errors, errorSchema, idSchema, and 2 more.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\react\components\pages\activeLearning\activeLearningForm.test.tsx(84,45)
11:54:02 electron.1 | TS2345: Argument of type '{ formData: IActiveLearningSettings; }'
is not assignable to parameter of type 'ISubmitEvent<unknown>'.
11:54:02 electron.1 | Type '{ formData: IActiveLearningSettings; }' is missing the following properties from type 'IChangeEvent<unknown>': edit, errors, errorSchema, idSchema, and 2 more.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\react\components\pages\editorPage\editorPage.test.tsx
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\react\components\pages\editorPage\editorPage.test.tsx(78,9)
11:54:02 electron.1 | TS2740: Type 'Mock<{ remote: { app: { getAppPath: Mock<string>; }; }; }>' is missing the following properties from type 'NodeRequire': resolve, cache, extensions,
main, and 2 more.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\react\components\shell\titleBar.test.tsx
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\react\components\shell\titleBar.test.tsx(101,13)
11:54:02 electron.1 | TS2740: Type 'Mock<{ remote: { getCurrentWindow: Mock<{ on: Mock<unknown>; isMaximized: Mock<boolean>; isFullScreen: Mock<boolean>; setTitle: Mock<unknown>; minimize: Mock<unknown>; maximize: Mock<unknown>; unmaximize: Mock<...>; close: Mock<...>; }>; Menu: {
...; }; }; }>' is missing the following properties from type 'NodeRequire': resolve, cache, extensions, main, and 2 more.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\redux\reducers\currentProjectReducer.ts
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\redux\reducers\currentProjectReducer.ts(53,25)
11:54:02 electron.1 | TS2322: Type 'unknown' is not assignable to type 'string'.
11:54:02 electron.1 | ERROR in C:\Source\VoTT\src\services\activeLearningService.test.ts
11:54:02 electron.1 | [tsl] ERROR in C:\Source\VoTT\src\services\activeLearningService.test.ts(26,9)
11:54:02 electron.1 | TS2740: Type 'Mock<{ remote: { app: { getAppPath: Mock<unknown>; }; }; }>' is missing the following properties from type 'NodeRequire': resolve, cache, extensions, main, and 2 more.
11:54:02 electron.1 | Exit-Code: 2
11:54:02 electron.1 | Exit-Signal: null
11:54:02 electron.1 | Electron Process Terminated
11:54:02 electron.1 | Close-Code: 2
11:54:02 electron.1 | Close-Signal: null
[DONE] Killing all processes with signal SIGINT
11:54:02 electron.1 Exited Successfully
for me, i change Node.js v14 to v10 is ok.