bfanger / tvkit

Proxy to run a modern dev server in old browsers
MIT License
22 stars 5 forks source link

SsytemJS error when transpiling static build using Vite static adapter #17

Closed christowiz closed 4 months ago

christowiz commented 4 months ago

The Sveltekit static adapter build runs successfully but fails when running a tvkit build on the static output.

image

And here is what seems the relevant origin point of the trace image

Here is a direct link to the logged SystemJS error #8 https://github.com/systemjs/systemjs/blob/main/docs/errors.md#8

bfanger commented 4 months ago

I couldn't reproduce this bug.

I've tried the sveltekit demo npm create svelte@latest my-app then removed sverdle and changed the adapter to adapter-static.

npx tvkit@latest build --browser chrome38 ./build  -o dist
npx serve@latest ./dist

and it worked fine, looks like something in your codebase is triggering this bug.

Could you provide a code example based on SvelteKit demo that is triggers this issue?

christowiz commented 4 months ago

@bfanger Thanks for the info. I'll do some exploration on my side. I hadn't been able to get it work since we started this project but it sounds like something in the way the site or dependencies are set up. I'll close this for now as you are most likely correct. Thanks.