Skip to content

TypeError: Cannot read property 'flags' of undefined #1030

Description

@igorsheg-wix

Do you want to request a feature or report a bug?
A Bug

What is the current behaviour?
Running yarn run build when installing @types modules breaks the build.

After installing the Typescript template, I'm trying to install styled-components, all goes fine until I install @types/styled-components.

If the current behaviour is a bug, please provide the steps to reproduce.

  1. preact create typescript my-project
  2. yarn add styled-components
  3. yarn add -D @types/styled-components
  4. yarn run build
  5. INTERNAL ERROR: Cannot read property 'flags' of undefined

What is the expected behaviour?
Being able to install @types packages.

OS: macOS 10.15.3
Terminal: Hyper 3.1.0
Shell: zsh
Node: v13.8.0
npm: 6.13.7
preact-cli: 2.2.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions