I encountered an issue when trying to import a model.task file into my App.tsx file.
After training a hand gesture recognition model in Python, I exported it to a model.task file. Now, I am attempting to import this file into my Next.js + Typescript project within the App.tsx file.
The line of code I used for importing is:
import Model from '@/utils/models/model.task';
However, I am receiving the following error message:
Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, as currently no loaders are configured to process this file. Please refer to https://webpack.js.org/concepts#loaders (Source code omitted for this binary file)
Can someone guide me on how to resolve this issue? Any assistance would be greatly appreciated. Thank you.