William Bell

Results 100 comments of William Bell

This worked for me ``` "resolutions": { + "cheerio": "1.0.0-rc.10" }, ```

Well devDependencies did not help. When I added "resolutions" it works.

OK here it is. ``` import AsyncStorage from '@react-native-async-storage/async-storage'; import auth from '@react-native-firebase/auth'; import firestore from '@react-native-firebase/firestore'; import messaging from '@react-native-firebase/messaging'; import React, { ReactNode, useEffect, useMemo, useState } from...

Ok will try. ``` Error: /Users/bill/theclub/TheClub/src/app-context/SmoochContext.tsx: Couldn't find a Program at Scope.getProgramParent (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/scope/index.js:899:11) at Scope.crawl (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/scope/index.js:802:32) at Scope.init (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/scope/index.js:791:12) at NodePath.setScope (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/path/context.js:146:30) at NodePath.setContext (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/path/context.js:162:8) at NodePath.popContext (/Users/bill/theclub/TheClub/node_modules/@babel/traverse/lib/path/context.js:222:10) at TraversalContext.visitQueue...

Any new ideas? Is there a way to try each commit? yarn add @babel/core -- how do I do that?

It is going into ``` function popContext() { this.contexts.pop(); if (this.contexts.length > 0) { this.setContext(this.contexts[this.contexts.length - 1]); } else { this.setContext(undefined); } } ``` this.setContext(undefined); And this is `Couldn't find...

OK I added: ``` throw new Error(`Couldn't find a Program ${JSON.stringify(scope)}`); ``` And get circular reference. ``` error src/app-context/SmoochContext.tsx: /Users/bill/theclub/TheClub/src/app-context/SmoochContext.tsx: Converting circular structure to JSON --> starting at object with...

OK I figured it out. This works: ``` const firestoreUpdate = async (): Promise => { try { const caseUsername = (await AsyncStorage.getItem('username')) || ''; const username = caseUsername.toLowerCase(); if...

For some reason this is an issue - why? ``` for (let i = 0; i < ids.length; i += 1) { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const id: IGroupIds = ids[i];...

I think it might have more to do with cleaning than the actual code. Verifying now.