nmn / qwik-stylex

A quick experiment to make StyleX work within a Qwik app.
8 stars 1 forks source link

How did you do this? #3

Open Dom-Cogan opened 3 months ago

Dom-Cogan commented 3 months ago

I'm not trolling here, I've spent 3 days trying to get styleX working with Qwik js. I've started 10 different projects and non of them work. All I've done in these projects are run create qwik app, then I went down the list from styleX including the bable and the development only. I then also added a babel.config file and I just keep getting this error Error: 'stylex.create' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'. I've tried to build the project to see if this will compile it and nope that doesn't do it either. nothing I've down is working. I've even asked claude, chat gpt gemini perplexity nothing is helping

PatrickJS commented 3 months ago

oh yeah @nmn we need to update this repo

Dom-Cogan commented 3 months ago

So it's not me?

PatrickJS commented 3 months ago

no, I need to update the repo

nmn commented 3 months ago

@PatrickJS We had it working. When did it break?

PatrickJS commented 2 months ago

@nmn I updated the repo but it worked before and after the update

PatrickJS commented 2 months ago

@Dom-Cogan do you have your vite config plugin setup like this? image

Dom-Cogan commented 2 months ago

where are you getting these files from? the index.mjs and the pre.mjs? I must of missed them in the docs? When I'm looking at the installation instructions i don't see a reference to those. Is this something that they are is suppose to be installed that i missed, or did i miss a few steps during set up?

Dom-Cogan commented 2 months ago

here is my project that I'm working on. I've made a new branch with the StyleX implementation I'm getting a new error now something about tailwind even though I'm not using it. i will note I've just copied and pasted the code from your example and have not have the chance to actually look into the code yet.

Portfolio remake

PatrickJS commented 2 months ago

it's a folder in the repo https://github.com/nmn/qwik-stylex/tree/main/vite-stylex-plugin you have to copy over the plugin

also your repo/link isn't public for us to see