Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

The Angular Compiler requires TypeScript >=4.4.2 and <4.7.0 but 4.7.4 was found instead. #379

Open
silkroadnomad opened this issue Jun 25, 2022 · 3 comments

Comments

@silkroadnomad
Copy link

When checking out the repo and running
yarn install followed by
yarn run test

example-browser-angular crashes with the error:

throw new Error(`The Angular Compiler requires TypeScript >=${minVersion} and <${maxVersion} but ${version} was found instead.`);
          ^

Error: The Angular Compiler requires TypeScript >=4.4.2 and <4.7.0 but 4.7.4 was found instead.
@achingbrain
Copy link
Contributor

achingbrain commented Jun 29, 2022

The problem might be yarn, it has a different algorithm to npm and sometimes ends up hoisting the different versions. What happens when you use npm?

@silkroadnomad
Copy link
Author

silkroadnomad commented Jun 29, 2022

With npm install and npm run test everything works as in github tests!

So my PR might be not the best solution here.

Changing the Readem is a better way to circumvent the confusion?

@SgtPooki
Copy link
Collaborator

SgtPooki commented Oct 5, 2022

i'm also getting this error when I yarn install and yarn test. attaching log

yarn-test-log.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants