-
Notifications
You must be signed in to change notification settings - Fork 31
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
Quokka with "ts-node" installed produces SWC error #925
Comments
Thanks for the report. We will investigate the cause of the issue next week. In the meantime you may disable SWC with a Quokka configuration setting. |
I'm seeing the same issue in WebStorm 2023.3.2 with Quokka 1.0.422
|
This issue has been addressed in the latest version of Quokka for both VS Code and JetBrains editors. Please update to the latest version(s) if you're still encountering these problems. |
Works like a charm. Thank you!! |
hello, disabling swc in quokka config.json temporarily solves the issue:
Output:
however without it the issue persists:
note: >Quokka.js: New JavaScript File works fine |
@darioprinc - can you please share your |
hi @smcenlly, I suppose you are after dependencies? edited:
|
@darioprinc - yes, I was keen to see your dependencies. Are these all of your dependencies? I want to confirm that these are the same dependencies for the project where you had the issue? Your Quokka output you provided above shows:
When I use your dependencies with a fresh installation of your packages, I get:
I'm wondering where the |
@smcenlly my apologies, I took a wrong branch with different package versions. I updated my original answer with a correct package.json |
@darioprinc - we can't reproduce the problem. We're happy to investigate further but we will need you to provide a sample project that breaks in the same way. Can you please let us know your version of Quokka? You need to be using a version of Quokka released after January 10th, 2024. |
@smcenlly Quokka version is v1.0.627 |
That version should not have the problem. Can you please provide a sample project that breaks in the same way? |
Issue description or question
The error happens when
ts-node
in active project is installed.This happens even when the code and
tsconfig.json
are empty.Installing
SWC
helps:Perhaps, instead of the error, this is better to write a suggestion to install the SWC, disable it with a Quokka settings or even disable it automatically when the SWC is not installed.
Quokka.js Console Output
There also related issue when
"swc": true"
is specified intsconfig.json
:Code editor version
Visual Studio Code v1.85.1
ts-node: 10.9.2
OS name and version
Windows 10
The text was updated successfully, but these errors were encountered: