Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues, failed to import "typescript" and Qwik Component was not invoked correctly #45

Closed
apiel opened this issue Dec 13, 2023 · 3 comments

Comments

@apiel
Copy link

apiel commented Dec 13, 2023

After cloning the tutorial from Astro https://github.com/withastro/blog-tutorial-demo
I followed the installation instruction for setting up Qwik, I first got the following issue:

[vite] Error when evaluating SSR module /node_modules/@qwikdev/astro/src/index.ts: failed to import "typescript"

After running npm install typescript --save-dev problem was solved.

However, now there is a new issue:

Internal assert, this is likely caused by a bug in Qwik: The Qwik Component was not invoked correctly

@thejackshelton
Copy link
Member

Hey @apiel!

Not sure why it does not install typescript by default 🤔 . Maybe we need it as a peer dependency? I will try to reproduce this.

Internal assert, this is likely caused by a bug in Qwik: The Qwik Component was not invoked correctly

Yeah so currently trying to solve this right now. The problem is because there is multiple JSX frameworks. That template uses Preact for example, and Astro currently needs an include or exclude option in the astro config.
#13 (comment)

@apiel
Copy link
Author

apiel commented Dec 14, 2023

thanks

@apiel apiel closed this as completed Dec 14, 2023
@thejackshelton
Copy link
Member

Hey @apiel, it should now work out of the box with preact!

If you run into any problems, make sure to put qwik at the beginning of the integrations array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants