intuit / intuit/design-systems-cli

Options issue in styled.tsx

Open
#689 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
419
Forks
89
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

https://github.com/intuit/design-systems-cli/blob/master/packages/utils/src/utils/styled.tsx#L58
I think `options` should be made optional, and then this should check if options exists. We are getting an error on:
`TypeError: Cannot read properties of undefined (reading 'class')`.

**To Reproduce**

Run the VSCode debugger on a project with an `@ids-ts` component in it. NOTE: this only shows up on the debugger, it works fine when run via `yarn test`.

**Expected behavior**

**Screenshots**
Screen Shot 2022-04-11 at 3 59 00 PM

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.