Closed KostisP closed 1 year ago
Just now faced this issue.
@KostisP Here is a temporary solution for this issue.
In your tsconfig change moduleResolution
to node
.
This solution will force typescript compiler to read types
from the root of package.json
file.
{
"compilerOptions": {
"moduleResolution": "node",
}
}
Will add this. Should be part of next release.
Take a look at this issue https://stackoverflow.com/questions/66096260/why-am-i-getting-referenceerror-self-is-not-defined-when-i-import-a-client-side
In short, the error occurs because the library requires Web APIs to work, which are not available when Next.js pre-renders the page on the server-side.
Take a look at this issue https://stackoverflow.com/questions/66096260/why-am-i-getting-referenceerror-self-is-not-defined-when-i-import-a-client-side
In short, the error occurs because the library requires Web APIs to work, which are not available when Next.js pre-renders the page on the server-side.
No. I faced this issue outside of Next.js.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
javascript
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
all
Programming Language and version (e.g. C++, Python, Java)
javascript 0.3.10
Describe the actual behavior
Describe the expected behaviour
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response