Skip to content
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 read properties of undefined (reading 'modifier') #9655

Closed
ttkoma opened this issue Oct 25, 2022 · 0 comments · Fixed by #9656
Closed

Cannot read properties of undefined (reading 'modifier') #9655

ttkoma opened this issue Oct 25, 2022 · 0 comments · Fixed by #9656
Assignees

Comments

@ttkoma
Copy link
Contributor

ttkoma commented Oct 25, 2022

What version of Tailwind CSS are you using?

v3.2.1

What build tool (or framework if it abstracts the build tool) are you using?

vite 3.1.8

What version of Node.js are you using?

v16.17.0

What browser are you using?

Chrome, Safari, or N/A

What operating system are you using?

Windows

Describe your issue

Autocomplete of css class not working in WebStorm (any files).

Embed language server not started with error:
TypeError: Cannot read properties of undefined (reading 'modifier')\n at api.addVariant (c:\\app\\node_modules\\tailwindcss\\lib\\lib\\setupContextUtils.js:578:40)\n at c:\\app\\node_modules\\tailwindcss\\lib\\lib\\setupContextUtils.js:538:38\n

ttkoma added a commit to ttkoma/tailwindcss that referenced this issue Oct 25, 2022
@RobinMalfait RobinMalfait self-assigned this Nov 3, 2022
RobinMalfait added a commit that referenced this issue Nov 3, 2022
* fix #9655

* update changelog

* add test for making sure calling variantFn doesn't crash

* make it behave as-if modifiers didn't exist

Co-authored-by: Robin Malfait <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants