10000 @pyscript/core PyScript Next into nuxt/vue app integration problems · pyscript pyscript · Discussion #1838 · GitHub
[go: up one dir, main page]

Skip to content

@pyscript/core PyScript Next into nuxt/vue app integration problems #1838

Closed Answered by WebReflection
Manusan42 asked this question in Q&A
Discussion options

You must be logged in to vote

lot of points but I can't really help much with your setup so point 1 and 2 will be skipped ... other points:

  1. the <py-script> both exists but it's mostly for backward compatibility and it warns if it contains some HTML tag. The recommended way to use PyScript is via <script type="py"> which would solve everything you are witnessing unless your vite/setup complains also there about unrecognized type ... which I don't know, but "this is the way"
  2. there's literally no way to type the xworker.sync as that's al unknown until you define it and it's hard to explain to TS because it could be either sync (worker) or async (main) ... if anyone is willing to help out there, please file a PR. That be…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Manusan42
Comment options

@WebReflection
Comment options

@WebReflection
Comment options

@Manusan42
Comment options

Answer selected by Manusan42
Comment options

You must be logged in to vote
1 reply
@Manusan42
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
0