teambit / envs

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

Angular Compiler requires TypeScript >=3.6.4 and <3.9.0 but 3.9.2 was found instead #139

Closed brusand closed 4 years ago

brusand commented 4 years ago

Describe the bug

A clear and concise description of the issue.

Steps to Reproduce

  1. update to node 10.2.18
  2. bit build

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots, exceptions and logs

error: bit failed to build product-list@0.0.1 with the following exception:` error: bit failed to build product-list@0.0.1 with the following exception: The Angular Compiler requires TypeScript >=3.6.4 and <3.9.0 but 3.9.2 was found instead. Error: The Angular Compiler requires TypeScript >=3.6.4 and <3.9.0 but 3.9.2 was found instead.

If applicable, add screenshots, exceptions, and logs to help explain your problem.

Specifications

Additional context

Add any other context about the problem here. vi .git/bit/components/compilers/angular/bit.envs/9.0.14/node_modules/@angular/compiler-cli/src/typescript_support.js var MAX_TS_VERSION = '3.9.5'; and it is ok

danielhdz56 commented 4 years ago

running into the same issue. when i run ng version the typescript version falls within the range >=3.6.4 and <3.9.0 when i check the package.json it is the same as running ng version.

Ive deleted node_modules, package_lock, and cleared the npm cache and still running into this problem.

itaymendel commented 4 years ago

@JoshK2 @qballer what do you think? is it possible to commit @brusand 's workaround to the compiler to resolve it?

Deekor commented 4 years ago

Been struggling with this all night. Glad I'm not the only one with the problem. I thought I was going crazy.

danielhdz56 commented 4 years ago

@Deekor same. I didn't notice that they had this workaround:

vi .git/bit/components/compilers/angular/bit.envs/9.0.14/node_modules/@angular/compiler-cli/src/typescript_support.js var MAX_TS_VERSION = '3.9.5';

GiladShoham commented 4 years ago

@JoshK2 Please take a look?

JoshK2 commented 4 years ago

Hi @brusand @danielhdz56 @Deekor

I solved this issue and release a new version of the Angular compiler, version 9.0.17. https://bit.dev/bit/envs/compilers/angular?version=9.0.17