Open tech-team-rural-mda opened 2 months ago
Hey @tech-team-rural-mda thanks for reaching out. You're right at the moment the lua script only picks up css files in a very rudimentary way where you just specify the css and it imports it. css modules has been around for a while, but it wasn't really a "thing" when i created this extension! But lets see if we can debug and work out what needs updating.
From the trace it looks like the linematching works ok https://github.com/clearmatics/qreacto/blob/main/_extensions/qreacto/qreacto.lua#L180
It also looks like (based on your trace) it finds the file correctly here.https://github.com/clearmatics/qreacto/blob/main/_extensions/qreacto/qreacto.lua#L186 (unless the file isn't located at /cori.data.rin/_components/App.module.css
?).
But after that, it looks like its treating the module like a jsx file and falling into the import check https://github.com/clearmatics/qreacto/blob/main/_extensions/qreacto/qreacto.lua#L203-L227.
This kind of makes sense as it is an import. So This will need to be tightened up to allow for css modules to be imported and treated appropriately. Thanks for pointing this out, i'll schedule some time to fix it
In the directory
_components
, there's a file calledApp.tsx
that defines the component. TheApp
component begins with:... referring to another file located in the same
_components
dir called./App.module.css
. When attempting to preview or render, quarto fails with this error: