Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run interface issue #7678

Closed
burky721 opened this issue Mar 26, 2024 · 8 comments
Closed

run interface issue #7678

burky721 opened this issue Mar 26, 2024 · 8 comments

Comments

@burky721
Copy link

ERROR in ../../packages/uniswap/src/config.ts
Module build failed (from ../../node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/levi/Documents/workspace/v3-interface/packages/uniswap/src/config.ts: "APPSFLYER_API_KEY" is not defined in ../../.env.defaults
1 | import {

2 | APPSFLYER_API_KEY,
| ^^^^^^^^^^^^^^^^^
3 | APPSFLYER_APP_ID,
4 | FIAT_ON_RAMP_API_URL,
5 | FIREBASE_APP_CHECK_DEBUG_TOKEN

how can I fix this??

@bigbangbtc
Copy link

same problem here.

@bigbangbtc
Copy link

I think I solved that.
You can create .env.default file under project root.
And copy the configuration in config/jest-presets/jest/globals.js to the env file.
like this.

ALCHEMY_API_KEY = 'key'
AMPLITUDE_EXPERIMENTS_DEPLOYMENT_KEY = 'key'
APPSFLYER_API_KEY = 'key'
APPSFLYER_APP_ID = "123"
FIAT_ON_RAMP_API_URL = 'https://api.uniswap.org'
MOONPAY_API_KEY = 'key'
MOONPAY_API_URL = 'https://api.moonpay.com'
MOONPAY_WIDGET_API_URL = 'https://api.moonpay.com'
INFURA_PROJECT_ID = "123"
ONESIGNAL_APP_ID = "123"
QUICKNODE_BNB_RPC_URL = 'https://api.uniswap.org'
SENTRY_DSN = 'http://sentry.com'
SHAKE_CLIENT_ID = "123"
SHAKE_CLIENT_SECRET = "123"
SIMPLEHASH_API_KEY = 'key'
SIMPLEHASH_API_URL = 'https://api.simplehash.com'
STATSIG_PROXY_URL = 'https://api.statsig.com'
TEMP_SCANTASTIC_URL = 'https://api.uniswap.org'
TRADING_API_KEY = 'key'
TRADING_API_URL = 'https://api.uniswap.org'
UNISWAP_API_KEY = 'key'
UNISWAP_API_BASE_URL = 'https://api.uniswap.org'
UNISWAP_APP_URL = 'https://app.uniswap.org'
WALLETCONNECT_PROJECT_ID = "123"
UNITAGS_API_URL = 'https://api.uniswap.org/unitags'
FIREBASE_APP_CHECK_DEBUG_TOKEN = 'token'

They you're good to go.

@burky721
Copy link
Author

I think I solved that. You can create .env.default file under project root. And copy the configuration in config/jest-presets/jest/globals.js to the env file. like this.

ALCHEMY_API_KEY = 'key'
AMPLITUDE_EXPERIMENTS_DEPLOYMENT_KEY = 'key'
APPSFLYER_API_KEY = 'key'
APPSFLYER_APP_ID = "123"
FIAT_ON_RAMP_API_URL = 'https://api.uniswap.org'
MOONPAY_API_KEY = 'key'
MOONPAY_API_URL = 'https://api.moonpay.com'
MOONPAY_WIDGET_API_URL = 'https://api.moonpay.com'
INFURA_PROJECT_ID = "123"
ONESIGNAL_APP_ID = "123"
QUICKNODE_BNB_RPC_URL = 'https://api.uniswap.org'
SENTRY_DSN = 'http://sentry.com'
SHAKE_CLIENT_ID = "123"
SHAKE_CLIENT_SECRET = "123"
SIMPLEHASH_API_KEY = 'key'
SIMPLEHASH_API_URL = 'https://api.simplehash.com'
STATSIG_PROXY_URL = 'https://api.statsig.com'
TEMP_SCANTASTIC_URL = 'https://api.uniswap.org'
TRADING_API_KEY = 'key'
TRADING_API_URL = 'https://api.uniswap.org'
UNISWAP_API_KEY = 'key'
UNISWAP_API_BASE_URL = 'https://api.uniswap.org'
UNISWAP_APP_URL = 'https://app.uniswap.org'
WALLETCONNECT_PROJECT_ID = "123"
UNITAGS_API_URL = 'https://api.uniswap.org/unitags'
FIREBASE_APP_CHECK_DEBUG_TOKEN = 'token'

They you're good to go.

Will try

@burky721
Copy link
Author

It seems wired but solved ,thx bro!

@rishav-eulb
Copy link

do we need actual appsflyer api key?

@rishav-eulb
Copy link

or just copy pasting above object will work??

@bigbangbtc
Copy link

or just copy pasting above object will work??

just copy and paste

@sanghunka
Copy link

create .env.defaults file under project root
Not .env.default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants