Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: peer dependency errors in npm 7 install #9856

Merged
merged 3 commits into from Jan 25, 2021
Merged

Conversation

platosha
Copy link
Contributor

Fixes #9714

* feat: replace awesome-typescript-loader with ts-loader

`awesome-typescript-loader` has not been updated in the last 2 years and does not guarantee compatibility with TypeScript 4+. `ts-loader` on the other hand is well maintained and tested with TypeScript 4+, and is the most popular Webpack loader for TypeScript files.

Related to #9714.

* use the allowTsInNodeModules option for ts-loader

* Revert "use the allowTsInNodeModules option for ts-loader"

This reverts commit 6a61d36.

* use .js instead of .ts in @jsmodule for MyLitField

Co-authored-by: haijian <haijian@vaadin.com>
@platosha platosha added the hilla Issues related to Hilla label Jan 21, 2021
This prevents missing files error from TypeScript / webpack in the IT tests,
which happen when using deprecated Vaadin 14 bootstrapping and not using
TypeScript.
Copy link
Contributor

@haijian-vaadin haijian-vaadin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried with the PR snapshot build, works for me locally. Good job!

@haijian-vaadin haijian-vaadin merged commit 61df7f7 into master Jan 25, 2021
@haijian-vaadin haijian-vaadin deleted the fix/ap/npm7 branch January 25, 2021 07:31
@caalador
Copy link
Contributor

Doesn't this now mean that you can not use typescript with V14 Bootstrapping?

@caalador
Copy link
Contributor

#10414

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

Successfully merging this pull request may close these issues.

npm install fails because of npm 7
4 participants