teambit / envs

Component development environments for the Bit community
https://bit.dev/bit/envs
Other
63 stars 9 forks source link

Compiler options doesn't work for angular compiler #136

Open basters opened 4 years ago

basters commented 4 years ago

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

GiladShoham commented 4 years ago

moving to the correct repo

alexmelville7 commented 3 years ago

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

Iyashu5040 commented 3 years ago

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.

duinzaghi commented 3 years ago

Could we get help on this please.