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

[WIP] fix: update dependencies to make apps work with turbopack #335

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions apps/beets-frontend-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"postinstall": "npm run gen:theme-typings"
},
"dependencies": {
"@chakra-ui/hooks": "^2.2.1",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/theme-tools": "^2.1.2",
"@chakra-ui/hooks": "2.4.2",
"@chakra-ui/react": "2.10.4",
"@chakra-ui/theme-tools": "2.2.6",
"@nikolovlazar/chakra-ui-prose": "^1.2.1",
"@repo/lib": "workspace:*",
"@sentry/nextjs": "^8.13.0",
"@sentry/nextjs": "8.45.1",
"@studio-freight/react-lenis": "^0.0.47",
"@vercel/speed-insights": "^1.0.1",
"framer-motion": "^10.13.0",
"framer-motion": "10.18.0",
"lodash": "^4.17.21",
"next": "14.2.15",
"next-themes": "^0.3.0",
"next": "14.2.20",
"next-themes": "0.4.4",
"nextjs-toploader": "^1.6.4",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -39,7 +39,7 @@
},
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@chakra-ui/styled-system": "^2.9.2",
"@chakra-ui/styled-system": "2.12.0",
"@repo/eslint-config": "workspace:*",
"@repo/prettier-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
Expand Down
22 changes: 11 additions & 11 deletions apps/frontend-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"start": "next start",
"build": "pnpm --filter @repo/lib graphql:gen && next build",
"dev": "concurrently \"pnpm --filter @repo/lib graphql:gen --watch\" \"next dev\"",
"dev:no-gen": "next dev",
"dev": "concurrently \"pnpm --filter @repo/lib graphql:gen --watch\" \"next dev --turbo\"",
"dev:no-gen": "next dev --turbo",
"gen:wagmi": "pnpm wagmi generate",
"lint": "eslint . --max-warnings 0 --cache",
"lint:fix": "eslint . --fix --max-warnings 0 --cache",
Expand All @@ -20,19 +20,19 @@
"postinstall": "npm run gen:theme-typings"
},
"dependencies": {
"@chakra-ui/hooks": "^2.2.1",
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/theme-tools": "^2.1.2",
"@chakra-ui/hooks": "2.4.2",
"@chakra-ui/icons": "2.2.4",
"@chakra-ui/react": "2.10.4",
"@chakra-ui/theme-tools": "2.2.6",
"@nikolovlazar/chakra-ui-prose": "^1.2.1",
"@repo/lib": "workspace:*",
"@sentry/nextjs": "^8.13.0",
"@sentry/nextjs": "8.45.1",
"@studio-freight/react-lenis": "^0.0.47",
"@vercel/speed-insights": "^1.0.1",
"framer-motion": "^10.13.0",
"framer-motion": "10.18.0",
"lodash": "^4.17.21",
"next": "14.2.15",
"next-themes": "^0.3.0",
"next": "14.2.20",
"next-themes": "0.4.4",
"nextjs-toploader": "^1.6.4",
"prismjs": "^1.29.0",
"react": "18.2.0",
Expand All @@ -45,7 +45,7 @@
},
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@chakra-ui/styled-system": "^2.9.2",
"@chakra-ui/styled-system": "2.12.0",
"@repo/eslint-config": "workspace:*",
"@repo/prettier-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function EnsOrAddress({ userAddress, chain }: { userAddress: `0x${string}`; chai
backgroundColor="background.level4"
borderRadius="100%"
height="24px"
src={ensAvatar || fallbackSVG.toDataUriSync()}
src={ensAvatar || fallbackSVG.toDataUri()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't do this because toDataUri returns a promise. That's why Sync was required. Code will have to be refactored if for some reason we've lost toDataUriSync.

width="24px"
/>
<HStack gap="0.5">
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/modules/tokens/TokenIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function TokenIcon({
borderRadius="100%"
height={`${size}px`}
onError={() => !hasError && setHasError(true)}
src={hasError || !iconSrc ? fallbackSVG.toDataUriSync() : iconSrc}
src={hasError || !iconSrc ? fallbackSVG.toDataUri() : iconSrc}
width={`${size}px`}
{...rest}
/>
Expand Down
28 changes: 14 additions & 14 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
"@balancer/sdk": "1.0.1",
"@chakra-ui/anatomy": "^2.2.2",
"@chakra-ui/clickable": "^2.1.0",
"@chakra-ui/hooks": "^2.2.1",
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/next-js": "^2.2.0",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/theme-tools": "^2.1.2",
"@dicebear/collection": "^7.0.1",
"@dicebear/core": "^7.0.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@chakra-ui/hooks": "2.4.2",
"@chakra-ui/icons": "2.2.4",
"@chakra-ui/react": "2.10.4",
"@chakra-ui/next-js": "2.4.2",
"@chakra-ui/theme-tools": "2.2.6",
"@dicebear/collection": "9.2.2",
"@dicebear/core": "9.2.2",
"@emotion/react": "11.14.0",
"@emotion/styled": "11.14.0",
"@layerzerolabs/scan-client": "^0.0.8",
"@nikolovlazar/chakra-ui-prose": "^1.2.1",
"@rainbow-me/rainbowkit": "2.2.1",
"@react-three/drei": "^9.117.3",
"@react-three/fiber": "^8.17.10",
"@safe-global/safe-apps-sdk": "9.1.0",
"@sentry/nextjs": "^8.13.0",
"@sentry/nextjs": "8.45.1",
"@studio-freight/react-lenis": "^0.0.47",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-query-devtools": "^5.56.0",
Expand All @@ -50,13 +50,13 @@
"echarts": "^5.4.3",
"echarts-for-react": "^3.0.2",
"fathom-client": "^3.7.0",
"framer-motion": "^10.13.0",
"framer-motion": "10.18.0",
"graphql": "^16.7.1",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.12.6",
"lodash": "^4.17.21",
"next": "14.2.15",
"next-themes": "^0.3.0",
"next": "14.2.20",
"next-themes": "0.4.4",
"nextjs-toploader": "^1.6.4",
"numeral": "^2.0.6",
"nuqs": "^1.19.1",
Expand All @@ -83,7 +83,7 @@
"devDependencies": {
"@apollo/experimental-nextjs-app-support": "^0.11.3",
"@chakra-ui/cli": "^2.4.1",
"@chakra-ui/styled-system": "^2.9.2",
"@chakra-ui/styled-system": "2.12.0",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/schema-ast": "^4.0.0",
Expand Down
Loading
Loading