Typescript-react-starter: i got an error when run 'yarn start'

Created on 28 Apr 2018  路  2Comments  路  Source: microsoft/TypeScript-React-Starter

node -v
v8.9.3
yarn -v
1.5.1
create-react-app -v
1.5.2
i run :

npm install -g create-react-app
create-react-app my-app --scripts-version=react-scripts-ts
yarn start

then:

yarn run v1.5.1
$ react-scripts-ts start
Failed to load tsconfig.json: Missing baseUrl in compilerOptions
Found no baseUrl in tsconfig.json, not applying tsconfig-paths-webpack-plugin
Found no baseUrl in tsconfig.json, not applying tsconfig-paths-webpack-plugin
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
Watching: D:\Test\react\ts\react-ts\my-app\src
Starting the development server...

ts-loader: Using [email protected] and D:\Test\react\ts\react-ts\my-app\tsconfig.json
Failed to compile.

D:/Test/react/ts/react-ts/my-app/node_modules/@types/node/index.d.ts
(2381,15): Duplicate identifier 'URL'.

i need a help

Most helpful comment

There is a known issue with node types latest version. Try this:

```javascript
npm remove -D @types/node
npm i -D @types/[email protected]

All 2 comments

i got the same problem

There is a known issue with node types latest version. Try this:

```javascript
npm remove -D @types/node
npm i -D @types/[email protected]

Was this page helpful?
0 / 5 - 0 ratings