Automattic / Automattic/juice

resolveCSSVariables: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'indexOf')

Open
#582 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
233
Avg merge
1d 10h
Merged PRs (30d)
8

Description

https://github.com/doocs/md/issues/1126

Repro: [test.ts](https://github.com/user-attachments/files/23382091/test.ts)

It should set `resolveCSSVariables` to `false`,then run success.

I think we can remove this feature and let user use [postcss-custom-properties](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties) to handle css variables.

https://github.com/doocs/md/pull/1131

Contributor guide

Open the contributing guide

Research direction

Start by running the attached test.ts reproduction with resolveCSSVariables set to false, then inspect the option's handling in Juice and the linked pull request 1131. Done means the reproduction completes successfully without the uncaught TypeError and the intended CSS-variable behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.