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
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]
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]