I have an app in React native. I have frontend and backend in same parent folder. Firstly, everything worked but now I have a problem with sequelize and SQLite database so I have to use Sequelize methods directly in my app.
So, in a file I have this:
import { SignGroup } from "../../../api/models/signGroup.js";
export async function getSignGroups() {
try {
const data = await SignGroup.findAll();
return data.map((group) => group.toJSON());
} catch (error) {
console.error("Failed to fetch sign groups: ", error);
throw error;
}
}
And it says:
I’m 100% sure that my path is correct because when i click on the path, it leads me to my file. I also tried using link from npm to link my projects but it doesn’t work.
You can also see my folder structure here: