-
Notifications
You must be signed in to change notification settings - Fork 306
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
Cannot import VarGroup
using an alias defined only in TS.
#426
Comments
Where did you use stylex.defineVars()? |
@olivierpascal
src/ui/Button.tsx
errors occur when used in this way |
The problem is that you're using an alias to import the variables. Replace You should also be able to configure StyleX with the |
VarGroup
using an alias defined only in TS.
@nmn
|
I think you should use the styleX({
aliases: {
'@/*': [path.join(__dirname, 'src', '*')],
},
}) See: stylex/apps/docs/docs/api/configuration/babel-plugin.mdx Lines 127 to 135 in c974210
|
@olivierpascal |
Describe the feature request
Hello,
I am currently working on creating a custom UI library using @stylexjs/stylex in a Vite project. However, I am encountering an issue when trying to use values defined with stylex.defineVars in stylex.create().
Here's the error message I receive during the build process:
Could you please help me understand why this issue is occurring and suggest any possible solutions? I've double-checked my setup and code, but I can't seem to resolve this issue.
Thank you for your assistance.
Best regards,
The text was updated successfully, but these errors were encountered: