这是indexloc提供的服务,不要输入任何密码
Skip to content

Typescript dependencies not found #382

@jamonholmgren

Description

@jamonholmgren

As you can see in infinitered/solidarity#202, if the host app doesn't pull in @types/cli-table2 (and friends), TypeScript won't be able to find them when trying to compile the app. This isn't a great experience.

Our options:

  1. Ship those dependencies as dependencies not devDependencies
  2. Copy those types into our own types
  3. Require host apps to manually bring in types in their own devDependencies

Related: https://stackoverflow.com/questions/45176661/how-do-i-decide-whether-types-goes-into-dependencies-or-devdependencies

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