lovasoa / SQLpage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.49k stars 81 forks source link

Error with the tab exemple #58

Closed pascalr0410 closed 1 year ago

pascalr0410 commented 1 year ago

Hello

index.sql is a c/c of example given in doc :

SELECT 
    'tab' as component;
SELECT 
    'My First tab' as title,
    1 as active;
SELECT 
    'This is tab two' as title;
SELECT 
    'Third tab is crazy' as title;

which causes the following error :

Sorry, but we were not able to process your request. 

Error:

 Failed to create a render context from the header context.

Caused by:
    0: The component 'tab' was not found.
    1: Couldn't load "sqlpage/templates/tab.handlebars" into cache
    2: Unable to read local file "sqlpage/templates/tab.handlebars"
    3: No such file or directory (os error 2)

Version 0.9.4 with Windows and linux

Regards, Pascal

lovasoa commented 1 year ago

image

v0.9.5 still hasn't be released ! You are probably using v0.9.4.

If you want to test nightly versions, you can use the official docker image. The latest tag on the docker image always points to the latest unpublished changes.

docker run -it --name sqlpage -p 8080:8080 --volume "$(pwd):/var/www" --rm lovasoa/sqlpage

Don't hesitate to report bugs in the work-in-progress version.

lovasoa commented 1 year ago

I just released v0.9.5 which contains the new tab component.