Closed
Description
Expected results
For there to be zero transpiling issues
Observed results
What happened?
There are transpiling issues
Logs
Please add the log output here.
dewi@pop-os:~/tmp/MyApp3$ npx tsc
node_modules/@types/node/globals.d.ts:317:11 - error TS2300: Duplicate identifier 'AbortController'.
317 interface AbortController {
~~~~~~~~~~~~~~~
node_modules/@types/react-native/globals.d.ts:389:15
389 declare class AbortController {
~~~~~~~~~~~~~~~
'AbortController' was also declared here.
node_modules/@types/node/globals.d.ts:329:11 - error TS2300: Duplicate identifier 'AbortSignal'.
329 interface AbortSignal {
~~~~~~~~~~~
node_modules/@types/react-native/globals.d.ts:376:15
376 declare class AbortSignal {
~~~~~~~~~~~
'AbortSignal' was also declared here.
node_modules/@types/node/globals.d.ts:336:13 - error TS2300: Duplicate identifier 'AbortController'.
336 declare var AbortController: {
~~~~~~~~~~~~~~~
node_modules/@types/react-native/globals.d.ts:389:15
389 declare class AbortController {
~~~~~~~~~~~~~~~
'AbortController' was also declared here.
node_modules/@types/node/globals.d.ts:341:13 - error TS2300: Duplicate identifier 'AbortSignal'.
341 declare var AbortSignal: {
~~~~~~~~~~~
node_modules/@types/react-native/globals.d.ts:376:15
376 declare class AbortSignal {
~~~~~~~~~~~
'AbortSignal' was also declared here.
node_modules/@types/react-native/globals.d.ts:376:15 - error TS2300: Duplicate identifier 'AbortSignal'.
376 declare class AbortSignal {
~~~~~~~~~~~
node_modules/@types/node/globals.d.ts:329:11
329 interface AbortSignal {
~~~~~~~~~~~
'AbortSignal' was also declared here.
node_modules/@types/node/globals.d.ts:341:13
341 declare var AbortSignal: {
~~~~~~~~~~~
and here.
node_modules/@types/react-native/globals.d.ts:389:15 - error TS2300: Duplicate identifier 'AbortController'.
389 declare class AbortController {
~~~~~~~~~~~~~~~
node_modules/@types/node/globals.d.ts:317:11
317 interface AbortController {
~~~~~~~~~~~~~~~
'AbortController' was also declared here.
node_modules/@types/node/globals.d.ts:336:13
336 declare var AbortController: {
~~~~~~~~~~~~~~~
and here.
Found 6 errors.
Steps to reproduce
- npx react-native init MyApp3 --template react-native-template-typescript
- cd MyApp3
- npx tsc
Metadata
Metadata
Assignees
Labels
No labels