ccrraaiigg / caffeine

Livecode the Web!
https://caffeine.js.org
MIT License
126 stars 6 forks source link

Examples not working #58

Open 7flash opened 10 months ago

7flash commented 10 months ago

When I open tabulator or other examples I mostly these error windows:

https://caffeine.js.org/tabulator/

image image

Also when I try to follow instructions in the comment section of https://caffeine.js.org/developer/ and execute in console

                fetch('https://caffeine.js.org/js/squeakjs/tether/handler.js')
                  .then((handlerSourceResult) => {handlerSourceResult.text()
                    .then((handlerSource) => {
                      fetch('https://caffeine.js.org/developer/js/squeakjs/squeak-worker.js')
                        .then((virtualMachineSourceResult) => {virtualMachineSourceResult.text()
                          .then((virtualMachineSource) => {
                            window.caffeineWorker = new Worker(URL.createObjectURL(new Blob([virtualMachineSource])))

                            window.caffeineWorker.onmessage = (new Function(handlerSource))()
                            window.caffeineWorker.postMessage('start')})})})})

It throws an error because these files are not found:

VM225:1 

       GET https://caffeine.js.org/js/squeakjs/tether/handler.js 404 (Not Found)
(anonymous) @ VM225:1
VM225:4 

       GET https://caffeine.js.org/developer/js/squeakjs/squeak-worker.js 404 (Not Found)
(anonymous) @ VM225:4
Promise.then (async)
(anonymous) @ VM225:3
Promise.then (async)
(anonymous) @ VM225:2
VM227:3 Uncaught (in promise) SyntaxError: Unexpected token '<'
    at new Function (<anonymous>)
    at <anonymous>:9:64
ccrraaiigg commented 9 months ago

Thanks for the bug report. This one is fixed in the next release, which I expect to get to in the next couple of weeks.