vladmandic / human-next Goto Github PK
View Code? Open in Web Editor NEWUsing Human library with TypeScript / ReactJS / NextJS
Home Page: https://vladmandic.github.io/human-next/out/index.html
License: MIT License
Using Human library with TypeScript / ReactJS / NextJS
Home Page: https://vladmandic.github.io/human-next/out/index.html
License: MIT License
Hi Vlad,
Any chance we could get an update for Next 13 App Router please :)
Thanks
Hello @vladmandic
First of all, thank you for developing the Human library. It's been immensely helpful.
However, I've run into an issue which seems to manifest specifically when using Next.js. Here's the scenario:
I have a default landing page (e.g., homepage) in my Next.js application.
I'm using Next.js's Link component to navigate from the landing page to another page that utilizes the Human library (let's call this the "camera page" is the template in the index.js).
When I navigate directly to the camera page (e.g., by manually entering the URL or refreshing the page), everything works fine.
However, if I navigate to the camera page from the landing page using the Link component, I encounter the following error:
webpack-internal:///…/human.esm.js:34802 Uncaught (in promise) TypeError: A(...).getAsync is not a function
at Env.updateBackend (human.esm.js:34788:1)
at getBestBackend (human.esm.js:35431:1)
at check (human.esm.js:35488:1)
at Human.load (human.esm.js:48712:1)
at eval (webpack-internal:///./components/humanComponent/humanComponent.tsx:86:32)
at async importHuman (webpack-internal:///./components/humanComponent/humanComponent.tsx:79:13)
updateBackend @ webpack-internal:///…/human.esm.js:34802
getBestBackend @ webpack-internal:///…/human.esm.js:35445
check @ webpack-internal:///…/human.esm.js:35502
load @ webpack-internal:///…/human.esm.js:48726
eval @ webpack-internal:///…manComponent.tsx:86
await in eval (async)
eval @ webpack-internal:///…manComponent.tsx:77
commitHookEffectListMount @ webpack-internal:///…evelopment.js:23145
commitPassiveMountOnFiber @ webpack-internal:///…evelopment.js:24921
commitPassiveMountEffects_complete @ webpack-internal:///…evelopment.js:24886
commitPassiveMountEffects_begin @ webpack-internal:///…evelopment.js:24873
commitPassiveMountEffects @ webpack-internal:///…evelopment.js:24861
flushPassiveEffectsImpl @ webpack-internal:///…evelopment.js:27034
flushPassiveEffects @ webpack-internal:///…evelopment.js:26979
eval @ webpack-internal:///…evelopment.js:26764
workLoop @ webpack-internal:///….development.js:266
flushWork @ webpack-internal:///….development.js:239
performWorkUntilDeadline @ webpack-internal:///….development.js:533
webpack-internal:///…/human.esm.js:34802 Uncaught (in promise) TypeError: A(...).getAsync is not a function
at Env.updateBackend (human.esm.js:34788:1)
at getBestBackend (human.esm.js:35431:1)
at check (human.esm.js:35488:1)
at Human.load (human.esm.js:48712:1)
at eval (webpack-internal:///./components/humanComponent/humanComponent.tsx:86:32)
at async importHuman (webpack-internal:///./components/humanComponent/humanComponent.tsx:79:13)
updateBackend @ webpack-internal:///…/human.esm.js:34802
getBestBackend @ webpack-internal:///…/human.esm.js:35445
check @ webpack-internal:///…/human.esm.js:35502
load @ webpack-internal:///…/human.esm.js:48726
eval @ webpack-internal:///…manComponent.tsx:86
await in eval (async)
eval @ webpack-internal:///…manComponent.tsx:77
commitHookEffectListMount @ webpack-internal:///…evelopment.js:23145
commitPassiveMountOnFiber @ webpack-internal:///…evelopment.js:24921
commitPassiveMountEffects_complete @ webpack-internal:///…evelopment.js:24886
commitPassiveMountEffects_begin @ webpack-internal:///…evelopment.js:24873
commitPassiveMountEffects @ webpack-internal:///…evelopment.js:24861
flushPassiveEffectsImpl @ webpack-internal:///…evelopment.js:27034
flushPassiveEffects @ webpack-internal:///…evelopment.js:26979
eval @ webpack-internal:///…evelopment.js:26764
workLoop @ webpack-internal:///….development.js:266
flushWork @ webpack-internal:///….development.js:239
performWorkUntilDeadline @ webpack-internal:///….development.js:533
Could you provide any insights or potential solutions to address this?
Thank you for your assistance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.