Skip to content

Options issue in styled.tsx #689

Description

@kennethbigler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions