Giter Site home page Giter Site logo

Comments (4)

beinoriusju avatar beinoriusju commented on June 18, 2024 1

I've had the exact same issue with AwaitRenderStatus error that started occurring just last week. My intuition says that some lib in the chain of dependencies of Nextjs dependencies got updated and this caused a memory leak inside app.

My plan was to load ReactAdmin component dynamically (just like you load lifi/widget). While in development it worked it became unusually slow (to a degree tests started failing). But when build for production it stopped working all-together giving AwaitRenderStatus error.

Unfortunately I was not able to resolve it neither with [email protected] nor [email protected], but upgrading to 13.5.2 solved this problem.

from widget.

chybisov avatar chybisov commented on June 18, 2024

@jiayuxiaochaoren Hey, thanks for reporting the issue. Could you please provide a reproducible example? AwaitRenderStatus is not something we have in our code, and maybe this comes from one of the dependencies.

from widget.

jiayuxiaochaoren avatar jiayuxiaochaoren commented on June 18, 2024

Thank you for your reply.
This is my package.json:
{
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint --fix"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.319.0",
"@aws-sdk/lib-storage": "^3.319.0",
"@chakra-ui/icons": "^2.0.19",
"@chakra-ui/react": "^2.5.5",
"@chakra-ui/styled-system": "^2.6.1",
"@chakra-ui/theme": "^2.2.4",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@infura/sdk": "^2.4.3",
"@lifi/widget": "^2.4.4",
"@socket.tech/plugin": "^1.3.0",
"@supabase/supabase-js": "^2.12.1",
"@tabler/icons": "^1.86.0",
"@types/js-cookie": "^3.0.3",
"@vercel/analytics": "^1.0.1",
"@vercel/kv": "^0.2.2",
"arraybuffer-to-buffer": "^0.0.7",
"cross-fetch": "^3.1.5",
"dayjs": "^1.11.7",
"ethereum-blockies-base64": "^1.0.2",
"ethers": "^5.7.2",
"framer-motion": "^10.3.1",
"fs": "0.0.1-security",
"ipfs-http-client": "^60.0.1",
"js-cookie": "^3.0.1",
"next": "^13.1.6",
"next-auth": "^4.19.2",
"next-transpile-modules": "^10.0.1",
"omit-deep": "^0.3.0",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-icons": "^4.8.0",
"siwe": "^2.1.4",
"swr": "^2.2.0",
"url-loader": "^4.1.1",
"uuid": "^9.0.0",
"viem": "^1.3.1",
"wagmi": "^1.3.9"
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@types/node": "^18.7.11",
"@types/react": "^18.0.28",
"dotenv": "^16.0.1",
"eslint": "^8.22.0",
"eslint-config-next": "^13.1.6",
"eslint-config-prettier": "^8.8.0",
"tsx": "^3.8.2",
"typescript": "5.1.6"
},
"peerDependencies": {
"@babel/core": "^7.18.13"
}
}
and code:
import { LiFiWidget } from '@lifi/widget'
import dynamic from 'next/dynamic'
// import { WidgetEvents } from './WidgetEvents'
const LiFiWidgetDynamic = dynamic(
() => import('@lifi/widget').then((module) => module.LiFiWidget) as any,
{
ssr: false
},
) as typeof LiFiWidget
export const Widget = () => {
return (
<>
{/* */}
<LiFiWidgetDynamic
config={{
fromChain: 324,
variant: 'default',
subvariant: 'split',
appearance: 'light',
languages: { default: 'en' },
containerStyle: {
width: '100%',
border: '1px solid rgb(234, 234, 234)',
borderRadius: '16px',
// margin: '0px 16px',
minWidth: '360px'
}
}}
integrator="zkproject"
/>
</>
)
}
by the way my project use Vercel to deploy.

@jiayuxiaochaoren Hey, thanks for reporting the issue. Could you please provide a reproducible example? AwaitRenderStatus is not something we have in our code, and maybe this comes from one of the dependencies.

from widget.

chybisov avatar chybisov commented on June 18, 2024

@beinoriusju thank you for providing such a detailed insight! 🙏 @jiayuxiaochaoren I hope that helps 🙂

from widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.