pinokiocomputer / pinokio

AI Browser
https://pinokio.computer
MIT License
2.76k stars 224 forks source link

"Hello world" example does not work #98

Open rowild opened 5 months ago

rowild commented 5 months ago

Following the Getting Started tutorial, the very first example – "hello world" – throughs this error on a Mac m2 32GB:

TypeError: /Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/pinokiod/server/views/browser.ejs:326
    324|   <div class='header-top header-item'>
    325|     <div class='app-info'>
 >> 326|       <img src="<%=rawpath%>/<%=config.icon%>?raw=true"/>
    327|       <div><%=config.title%></div>
    328|     </div>
    329|   </div>

Cannot read properties of undefined (reading 'icon')
    at eval ("/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/pinokiod/server/views/browser.ejs":23:32)
    at browser (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/ejs/lib/ejs.js:703:17)
    at tryHandleCache (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/ejs/lib/ejs.js:274:36)
    at exports.renderFile [as engine] (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/ejs/lib/ejs.js:491:10)
    at View.render (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/express/lib/view.js:135:8)
    at tryRender (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/express/lib/application.js:657:10)
    at Function.render (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/express/lib/application.js:609:3)
    at ServerResponse.render (/Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/express/lib/response.js:1039:7)
    at /Applications/Pinokio.app/Contents/Resources/app.asar/node_modules/pinokiod/server/index.js:1838:11
GaoCan702 commented 5 months ago

I get the same error too

matthewkogan commented 5 months ago

Same error on Windows.

echeadle commented 5 months ago

I get the same error on linux.

AlexeyPodd commented 4 months ago

Same error on linux, was using .deb and .AppImage.

Upd: Found previous issue, there is way to make it work: https://github.com/pinokiocomputer/pinokio/issues/86