I bootstrapped an app with create-snowpack-app using the preact-typescript template. whenever I try to use the style function, I get this weird error:
Unhandled Runtime Error
Script error.
Source:
no source file
when I check the browser console, this is whats there
SyntaxError: Importing binding name 'parse' is not found.
not sure at what level this is happening, whether its a preact thing or what, not sure how that would change things though. I have the snowpack plugin installed.
Not sure why the error messages are so unhelpful however I can see you're calling style outside of a .css.ts file. All @vanilla-extract/css code must be called within .css.ts files.
Describe the bug
I bootstrapped an app with
create-snowpack-app
using thepreact-typescript
template. whenever I try to use thestyle
function, I get this weird error:when I check the browser console, this is whats there
SyntaxError: Importing binding name 'parse' is not found.
not sure at what level this is happening, whether its a preact thing or what, not sure how that would change things though. I have the snowpack plugin installed.
Link to reproduction
demo repo
I made this demo repo which is a 1:1 to what I have, steps to see error after pulling down the repo:
its a mono repo, but if you want you can
cd packages/client
then run those steps above so that its identical to a standalone repo.System Info