PrismarineJS/prismarine-viewer

error screenshot.js #120

shketov posted onGitHub

When I try to take a screenshot, I get an error that no. png file with textures was found at the specified path

Using version: 1.12
(node:2072) UnhandledPromiseRejectionWarning: Error: ENOENT, No such file or directory 'C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\public\textures\1.12.png'
    at setSource (C:\Users\shketov\Desktop\Bot\node_modules\canvas\lib\image.js:91:13)
    at Image.set (C:\Users\shketov\Desktop\Bot\node_modules\canvas\lib\image.js:62:9)
    at C:\Users\shketov\Desktop\Bot\node_modules\canvas\index.js:34:15
    at new Promise (<anonymous>)
    at loadImage (C:\Users\shketov\Desktop\Bot\node_modules\canvas\index.js:23:10)
    at loadTexture (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\utils.js:7:3)
    at WorldRenderer.setVersion (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\worldrenderer.js:61:5)
    at Viewer.setVersion (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\viewer.js:34:16)
    at Object.module.exports.main (C:\Users\shketov\Desktop\Bot\modules\screenshot.js:27:10)
    at C:\Users\shketov\Desktop\Bot\commands\help.js:17:16

image


posted by rom1504 about 4 years ago

and did you run npm install in the main folder ?

posted by rom1504 about 4 years ago

Working now ?

On Wed, Jan 20, 2021, 10:52 Valeriya notifications@github.com wrote:

Closed #120 https://github.com/PrismarineJS/prismarine-viewer/issues/120 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-viewer/issues/120#event-4226988954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437U7Z6VR6TITPLQ3QV3S22RXHANCNFSM4WCMUDYA .

posted by rom1504 about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests