Glavin001 / Glavin001/react-hot-ts
为什么项目跑不起来,会报错?对node版本有要求吗?
- Dominant language
- TypeScript
- Stars
- 92
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:307
throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
^
TSError: ⨯ Unable to compile TypeScript
webpack.config.ts (54,5): Type '{ entry: string[]; output: { path: string; filename: string; }; devtool: "source-map"; resolve: {...' is not assignable to type 'Configuration'.
Object literal may only specify known properties, and 'devServer' does not exist in type 'Configuration'. (2322)
at getOutput (C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:307:15)
at C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:336:16
at Object.compile (C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:498:11)
at Module.m._compile (C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:392:43)
at Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Object.require.extensions.(anonymous function) [as .ts] (C:\myTest\typescript\react-hot-ts-master\node_modules\_ts-node@3.3.0@ts-node\src\index.ts:395:12)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Module.require (internal/modules/cjs/loader.js:650:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-hot-ts@0.1.0 start: `webpack-dev-server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-hot-ts@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\GY\AppData\Roaming\npm-cache\_logs\2019-06-11T08_47_14_962Z-debug.log
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with webpack.config.ts at line 54 and inspect the TypeScript, ts-node, webpack, and webpack-dev-server dependencies used by the project. Run the npm start script to reproduce the devServer type error; done means the project starts successfully with a documented compatible Node.js and dependency setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react, typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100