Closed NoheliGT closed 3 months ago
hello, what version of anime-wallpaper do u use?
do you already import the type in the variable?
example: const { AnimeWallpaper, AnimeSource } = require('anime-wallpaper');
The version I'm using is: anime-wallpaper": "^1.1.1"; and yes, if I imported the variable in const { Anime Wallpaper, Anime Source } = require('anime-wallpaper'); So that's not the problem, I've been using this library for a while now but I only used it to generate random wallpapers and that works. I only have a problem with specific searches
version 1.1.1 is now deprecated, you can update to the latest version 3.1.0
The update didn't work for me, I don't understand what the problem could be, but oh well, thanks.
node:internal/modules/cjs/loader:372 throw err; ^
Error: Cannot find module 'C:\Users\Usuario PC\Documents\BOTOFICIAL\node_modules\anime-wallpaper\dist*\'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:364:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.
uh, are you sure this is the latest version?
yes
just tried: Runkit and its work well.
try reinstall and install again, hope fix the issue
Thanks, I already solved it with the version 2.0.0
Can you help me with this error when trying to do searches?
Console: TypeError: Cannot read properties of undefined (reading 'WallHaven')