Open ibenamazi opened 8 months ago
need help guys...
i got the same Error, how to fix it ?
node: 18.12.1 yarn: 3.2.3
Same here, any solu?
need help guys...
did u make it? bro.
Hi. There seems to be a problem in line 14 in apps/web/scripts/compile-ajv-validators.js file.
fs.writeFileSync(path.join(__dirname, '../src/utils/__generated__/validateTokenList.js'), tokenListModuleCode)
script tries to write tokenListModuleCode to validateTokenList.js in __generated__
folder but that folder doesn't exists. As a matter of fact it's .gitignored hence the error. I'd like to work on that if possible. As a workaround just create empty __generated__
folder in apps/web/src/utils and run yarn install again
I can confirm that pull request https://github.com/Uniswap/interface/pull/7637 worked like a charm to fix this issue 👍
I can confirm that pull request #7637 worked like a charm to fix this issue 👍
pr not working for me , having same issue
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,
new error found
I can confirm that pull request #7637 worked like a charm to fix this issue 👍
pr not working for me , having same issue
it worked on ubuntu/wsl shell. doing it on windows powershell was not working
../../packages/uniswap/src/config.ts 中的错误 模块构建失败(来自../../node_modules/babel-loader/lib/index.js): 语法错误:/Users/levi/Documents/ workspace/v3-interface/packages/uniswap/src/config.ts:“APPSFLYER_API_KEY”未在 ../../.env.defaults 1 中定义 |进口 {
2 | APPSFLYER_API_KEY, | ^^^^^^^^^^^^^^^^^^^ 3 | APPSFLYER_APP_ID, 4 | FIAT_ON_RAMP_API_URL, 5 | FIREBASE_APP_CHECK_DEBUG_TOKEN,
发现新错误 Brother, have you solved it?
mkdir apps/web/src/utils/__generated__
from project root fixes the issue
Log
This file contains the result of Yarn building a package (universe@workspace:.)
Script name: postinstall
husky - Git hooks installed patch-package 7.0.2 Applying patches... @vercel/og@0.5.8 ✔ @web3-react/coinbase-wallet@8.2.3 ✔ @web3-react/gnosis-safe@8.2.4 ✔ @web3-react/metamask@8.2.4 ✔ @web3-react/walletconnect-v2@8.5.1 ✔ • Packages in scope: @uniswap/interface, @uniswap/mobile, eslint-config-custom, jest-presets, tsconfig, ui, utilities, wallet • Running prepare in 8 packages • Remote caching disabled @uniswap/interface:prepare: cache miss, executing fe13046893e538e9 wallet:prepare: cache hit, replaying logs ee0fed0badea6811 wallet:prepare: Successfully generated 12 typings! @uniswap/interface:prepare: [contracts] npm WARN ignoring workspace config at C:\Users\ibenamzi\uni\interface-main\apps\web/.npmrc @uniswap/interface:prepare: [i18n] npm WARN ignoring workspace config at C:\Users\ibenamzi\uni\interface-main\apps\web/.npmrc @uniswap/interface:prepare: [ajv] npm WARN ignoring workspace config at C:\Users\ibenamzi\uni\interface-main\apps\web/.npmrc @uniswap/interface:prepare: [contracts] @uniswap/interface:prepare: [contracts] > @uniswap/interface@1.1.0 contracts @uniswap/interface:prepare: [contracts] > yarn contracts:compile:abi && yarn contracts:compile:v3 @uniswap/interface:prepare: [contracts] @uniswap/interface:prepare: [i18n] @uniswap/interface:prepare: [i18n] > @uniswap/interface@1.1.0 i18n @uniswap/interface:prepare: [i18n] > yarn i18n:extract --clean && yarn i18n:compile @uniswap/interface:prepare: [i18n] @uniswap/interface:prepare: [graphql] npm WARN ignoring workspace config at C:\Users\ibenamzi\uni\interface-main\apps\web/.npmrc @uniswap/interface:prepare: [ajv] @uniswap/interface:prepare: [ajv] > @uniswap/interface@1.1.0 ajv @uniswap/interface:prepare: [ajv] > node scripts/compile-ajv-validators.js @uniswap/interface:prepare: [ajv] @uniswap/interface:prepare: [graphql] @uniswap/interface:prepare: [graphql] > @uniswap/interface@1.1.0 graphql @uniswap/interface:prepare: [graphql] > yarn graphql:fetch && yarn graphql:generate @uniswap/interface:prepare: [graphql] @uniswap/interface:prepare: [ajv] node:internal/fs/utils:348 @uniswap/interface:prepare: [ajv] throw err; @uniswap/interface:prepare: [ajv] ^ @uniswap/interface:prepare: [ajv] @uniswap/interface:prepare: [ajv] Error: ENOENT: no such file or directory, open 'C:\Users\ibenamzi\uni\interface-main\apps\web\src\utils__generated\validateTokenList.js' @uniswap/interface:prepare: [ajv] at Object.openSync (node:fs:600:3) @uniswap/interface:prepare: [ajv] at Object.writeFileSync (node:fs:2221:35) @uniswap/interface:prepare: [ajv] at Object. (C:\Users\ibenamzi\uni\interface-main\apps\web\scripts\compile-ajv-validators.js:14:4)
@uniswap/interface:prepare: [ajv] at Module._compile (node:internal/modules/cjs/loader:1159:14)
@uniswap/interface:prepare: [ajv] at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
@uniswap/interface:prepare: [ajv] at Module.load (node:internal/modules/cjs/loader:1037:32)
@uniswap/interface:prepare: [ajv] at Module._load (node:internal/modules/cjs/loader:878:12)
@uniswap/interface:prepare: [ajv] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
@uniswap/interface:prepare: [ajv] at node:internal/main/run_main_module:23:47 {
@uniswap/interface:prepare: [ajv] errno: -4058,
@uniswap/interface:prepare: [ajv] syscall: 'open',
@uniswap/interface:prepare: [ajv] code: 'ENOENT',
@uniswap/interface:prepare: [ajv] path: 'C:\Users\ibenamzi\uni\interface-main\apps\web\src\utils\ generated\validateTokenList.js'
@uniswap/interface:prepare: [ajv] }
@uniswap/interface:prepare: [ajv]
@uniswap/interface:prepare: [ajv] Node.js v18.12.1
@uniswap/interface:prepare: [ajv] npm ERR! Lifecycle script
ajv
failed with error: @uniswap/interface:prepare: npm ERR! Error: command failed @uniswap/interface:prepare: [ajv] npm ERR! in workspace: @uniswap/interface@1.1.0 @uniswap/interface:prepare: [ajv] npm ERR! at location: C:\Users\ibenamzi\uni\interface-main\apps\web @uniswap/interface:prepare: [ajv] npm run ajv exited with code 1 @uniswap/interface:prepare: [contracts] Successfully generated 30 typings! @uniswap/interface:prepare: [contracts] Successfully generated 218 typings! @uniswap/interface:prepare: [contracts] npm run contracts exited with code 0 @uniswap/interface:prepare: [i18n] ✔ @uniswap/interface:prepare: [i18n] Catalog statistics for src/locales{locale}: @uniswap/interface:prepare: [i18n] ┌────────────────┬─────────────┬─────────┐ @uniswap/interface:prepare: [i18n] │ Language │ Total count │ Missing │ @uniswap/interface:prepare: [i18n] ├────────────────┼─────────────┼─────────┤ @uniswap/interface:prepare: [i18n] │ af-ZA │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ar-SA │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ca-ES │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ cs-CZ │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ da-DK │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ el-GR │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ en-US (source) │ 874 │ - │ @uniswap/interface:prepare: [i18n] │ es-ES │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ fi-FI │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ fr-FR │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ he-IL │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ hu-HU │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ id-ID │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ it-IT │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ja-JP │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ko-KR │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ nl-NL │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ no-NO │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ pl-PL │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ pt-BR │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ pt-PT │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ro-RO │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ ru-RU │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ sr-SP │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ sv-SE │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ sw-TZ │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ tr-TR │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ uk-UA │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ vi-VN │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ zh-CN │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] │ zh-TW │ 874 │ 874 │ @uniswap/interface:prepare: [i18n] └────────────────┴─────────────┴─────────┘ @uniswap/interface:prepare: [i18n] @uniswap/interface:prepare: [i18n] (use "yarn i18n:extract" to update catalogs with new messages) @uniswap/interface:prepare: [i18n] (use "yarn i18n:compile" to compile catalogs for production) @uniswap/interface:prepare: [graphql] [STARTED] Parse Configuration @uniswap/interface:prepare: [graphql] [SUCCESS] Parse Configuration @uniswap/interface:prepare: [graphql] [STARTED] Generate outputs @uniswap/interface:prepare: [graphql] [STARTED] Generate to src/graphql/data/generated/types-and-hooks.ts @uniswap/interface:prepare: [graphql] [STARTED] Load GraphQL schemas @uniswap/interface:prepare: [graphql] [SUCCESS] Load GraphQL schemas @uniswap/interface:prepare: [graphql] [STARTED] Load GraphQL documents @uniswap/interface:prepare: [graphql] [SUCCESS] Load GraphQL documents @uniswap/interface:prepare: [graphql] [STARTED] Generate @uniswap/interface:prepare: [graphql] [SUCCESS] Generate @uniswap/interface:prepare: [graphql] [SUCCESS] Generate to src/graphql/data/generated/types-and-hooks.ts @uniswap/interface:prepare: [graphql] [SUCCESS] Generate outputs @uniswap/interface:prepare: [i18n] Compiling message catalogs... @uniswap/interface:prepare: [i18n] Done! @uniswap/interface:prepare: [i18n] npm run i18n exited with code 0 @uniswap/interface:prepare: [graphql] [STARTED] Parse Configuration @uniswap/interface:prepare: [graphql] [SUCCESS] Parse Configuration @uniswap/interface:prepare: [graphql] [STARTED] Generate outputs @uniswap/interface:prepare: [graphql] [STARTED] Generate to src/graphql/thegraph/generated/types-and-hooks.ts @uniswap/interface:prepare: [graphql] [STARTED] Load GraphQL schemas @uniswap/interface:prepare: [graphql] [SUCCESS] Load GraphQL schemas @uniswap/interface:prepare: [graphql] [STARTED] Load GraphQL documents @uniswap/interface:prepare: [graphql] [SUCCESS] Load GraphQL documents @uniswap/interface:prepare: [graphql] [STARTED] Generate @uniswap/interface:prepare: [graphql] [SUCCESS] Generate @uniswap/interface:prepare: [graphql] [SUCCESS] Generate to src/graphql/thegraph/generated__/types-and-hooks.ts @uniswap/interface:prepare: [graphql] [SUCCESS] Generate outputs @uniswap/interface:prepare: [graphql] npm run graphql exited with code 0 @uniswap/interface:prepare: ERROR: command finished with error: command (C:\Users\ibenamzi\uni\interface-main\apps\web) yarn run prepare exited (1) @uniswap/interface#prepare: command (C:\Users\ibenamzi\uni\interface-main\apps\web) yarn run prepare exited (1)Tasks: 1 successful, 2 total Cached: 1 cached, 2 total Time: 40.892s Failed: @uniswap/interface#prepare
ERROR run failed: command exited (1)