I have two files in the same folder but when I try to import the other file’s code it doesn’t work. I added “type”: “module” in the package.json file. Why it is not working?
First of all, it’s usually better to cut and paste code rather than do pictures.
But OK, reading the error, it can’t find the package “scrapers”. It is mentioning it in reference to amni.js, but it must be in it’s dependency, or something.
Can you comment out the import at the top of db.js and comment out the
const db ... thing, to just see if it can export a function?
Thanks! got the solution.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.