Hi @dabakovich, I am trying to clone your library and work on it locally. However, whenever I write npm install in react-native-controlled-mentions folder, I get this error - any idea why?
svarto@Philips-MacBook-Pro cloned-mentions % npm install npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
> react-native-controlled-mentions@2.2.5 prepare /Users/svarto/Documents/React/cloned-mentions
> 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:363:15
363 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:350:15
350 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:363:15
363 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:350:15
350 declare class AbortSignal {
~~~~~~~~~~~
'AbortSignal' was also declared here.
node_modules/@types/react-native/globals.d.ts:350:15 - error TS2300: Duplicate identifier 'AbortSignal'.
350 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:363:15 - error TS2300: Duplicate identifier 'AbortController'.
363 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.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! react-native-controlled-mentions@2.2.5 prepare: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the react-native-controlled-mentions@2.2.5 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
There is conflicts in the types, where for some reason all types are installed and they conflict. I solved it by adding in "skipLibCheck": true, in tsconfig.json.
Hi @dabakovich, I am trying to clone your library and work on it locally. However, whenever I write
npm install
in react-native-controlled-mentions folder, I get this error - any idea why?