CodePicks icon indicating copy to clipboard operation
CodePicks copied to clipboard

problem with googleanalytics.ts

Open koevi97118 opened this issue 7 years ago • 2 comments

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 avatar Aug 17 '19 14:08 koevi97118

@koevi97118 エラーメッセージを見せてください。

KangYoosam avatar Aug 18 '19 16:08 KangYoosam

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

というような感じです

koevi97118 avatar Aug 18 '19 17:08 koevi97118