Closed Navy-gif closed 10 months ago
While we haven't been able to reproduce the cannot find module
error in the https://github.com/Navy-gif/quokka-issue repo, we have reproduced another error that may be causing the issue for you.
The found issue was fixed and the fix is published in v1.0.583.
Unfortunately this seems to not have fixed it for me. Are there any other environmental factors that could lead to the exhibited behaviour?
Are there any other environmental factors that could lead to the exhibited behaviour?
Likely so. Can you please run the latest version of Quokka on your sample repo https://github.com/Navy-gif/quokka-issue and share a screenshot of the error that you are getting?
And just to confirm that it runs fine in node
Thank you for the additional detail. We were able to reproduce the issue, and we think we've identified the cause. We've released Quokka version 1.0.586
, which contains a fix we hope will address your issue. Please update to this version and let us know how you go.
It seems to have fixed my issue, thank you.
Issue description or question
Documentation mentions I should be able to run this with TypeScript without requiring any config, however, as soon as I try running it I get a "cannot find module" error in the Quokka output.
The sample repository contains the tsconfig file I use in my projects, if it contains an incompatible configuration, please document it.
Is this issue related to Quokka not outputting the expected results of your code?: Yes/No No, quokka fails to run at all
Sample repository link
https://github.com/Navy-gif/quokka-issue
Quokka.js Console Output
Quokka PRO 'index.ts' (node: v20.8.0, TypeScript: v5.2.2) Cannot find module '.\test.js' imported from .\index.js
Code editor version
Visual Studio Code v1.84.2
OS name and version
Windows 10 22H2