CodePicks
CodePicks copied to clipboard
problem with googleanalytics.ts
Hi,
I just cloned this repo and ran on my mac(mojave 10,14), then simulator for ios opened and so it seemed like a success. however, it actually didn't. the error was triggered by "Googleanalytics.ts". Then I supposed that I should modify that, but I could not open that file and mac says "linguistics cannot be opened with this version of macOS".
How can/should I deal with that?
I hope to hear your insight... Thank you.
@koevi97118 エラーメッセージを見せてください。
ERROR
13:12
src/services/googleAnalytics.ts: /Users/username/CodePicks/src/services/googleAnalytics.ts: Try to import dotenv variable "GOOGLE_ANALYTICS_UID" which is not defined in any .env files.
1 | import { Analytics as GoogleAnalytics, Event, ScreenHit } from 'expo-analytics'
> 2 | import { GOOGLE_ANALYTICS_UID } from 'react-native-dotenv'
| ^
3 | import { getCurrentRouteName, getCurrentRouteParams } from '../utils'
4 |
5 | class Analytics {
ERROR
13:12
Building JavaScript bundle: error
というような感じです