Skip to content

Compiler options doesn't work for angular compiler #136

Open

Description

@basters

Describe the bug

I have existing project and tried to use bit for share some components.
I added all dependencies and started "bit build" but got and errors like:

error TS2564: Property '...' has no initializer and is not definitely assigned in the constructor
error TS7006: Parameter '...' implicitly has an 'any'
error TS7008: Member '...' implicitly has an 'any' type.
error TS7032: Property '...' implicitly has type 'any', because its set accessor lacks a parameter type annotation.

I tried to override "noImpliciаtAny" option with "false" value like it described in https://docs.bit.dev/docs/building-components.html#defining-a-compiler , but issue still happens.

My config is:

"bit": {
    "env": {
      "compiler": {
        "bit.envs/compilers/angular@9.0.14": {
          "rawConfig": {
            "tsconfig": {
              "compilerOptions": {
                "noImpliciаtAny": false
              }
            }
          }
        }
      }
    },
    "componentsDefaultDirectory": "components/{name}",
    "packageManager": "npm"
  }

Expected Behavior

I expect that I can override somehow tsconfig props or can pass my tsconfig

Specifications

  • Bit version: 14.7.6
  • Node version: 10.16.0
  • npm / yarn version: 6.14.4
  • Platform: Mac OS
  • Bit compiler (include version): angular@9.0.14

Activity

  1. GiladShoham commented on May 10, 2020

    @GiladShoham
    Member

    moving to the correct repo

  2. transferred this issue fromteambit/biton May 10, 2020
  3. alexmelville7 commented on Oct 19, 2020

    @alexmelville7

    Could we please get a response on this please? I am struggling with this as well.

  4. Iyashu5040 commented on Nov 17, 2020

    @Iyashu5040

    I am also struggling to configure the compiler options. The documentation at https://bit.dev/bit/envs/compilers/angular/ doesn't provide any details on how to do this configuration.

  5. duinzaghi commented on May 22, 2021

    @duinzaghi

    Could we get help on this please.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions