Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Javascript error while syncing website

  • #9871
    Avatar photo[anonymous]

    Publii 0.42.1

    Windows 11 22H2 22621.1555

    FTP sync. Test connection works fine.

    But sync website display javascript error occured in the main process message.

    #9872
    Avatar photo[anonymous]

    Here’s the error message attached.

    There’s also an error if I try to preview site, apparently some javascript module is not where it should be.

    Copy of rendering-errors.log

    node:internal/modules/cjs/loader:963
    const err = new Error(message);
    ^

    Error: Cannot find module ‘C:\Users\jf\Documents\Publii\plugins\imageDecoding\main.js’
    Require stack:
    – C:\Users\jf\AppData\Local\Programs\Publii\resources\app.asar\back-end\modules\render-html\renderer.js
    – C:\Users\jf\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\renderer\preview.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
    at Module._load (node:internal/modules/cjs/loader:811:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1035:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Renderer.loadPlugins (C:\Users\jf\AppData\Local\Programs\Publii\resources\app.asar\back-end\modules\render-html\renderer.js:1896:34)
    at new Renderer (C:\Users\jf\AppData\Local\Programs\Publii\resources\app.asar\back-end\modules\render-html\renderer.js:89:14)
    at process.<anonymous> (C:\Users\jf\AppData\Local\Programs\Publii\resources\app.asar\back-end\workers\renderer\preview.js:13:24)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:939:14) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘C:\\Users\\jf\\AppData\\Local\\Programs\\Publii\\resources\\app.asar\\back-end\\modules\\render-html\\renderer.js’,
    ‘C:\\Users\\jf\\AppData\\Local\\Programs\\Publii\\resources\\app.asar\\back-end\\workers\\renderer\\preview.js’
    ]
    }

    #9874
    Avatar photo[anonymous]

    Hi,

    from the error message “Cannot find module ‘C:\Users\jf\Documents\Publii\plugins\imageDecoding\main.js’” I would suggest to reinstall the imageDecoding plugin, which misses a main.js for whatever reason,  and retry after that.

    #9876
    Avatar photo[anonymous]

    Ok, got it. I forgot to reinstall the plugins I used on a website I’ve restored from a backup file… I thought the backup included the plugins.