Skip to content

Why do I get TS Errors in material/web itself during compilation? #5564

Answered by asyncLiz
alexmeier-19 asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is the same issue as #5129. It's not very well supported to try and bundle published .d.ts files from an npm module.

It sounds like the way your project is set up, TypeScript is trying to compile node_modules/@material/web/. You could try using skipLibCheck to see if that changes anything.

Otherwise, if you really need to build the project through TypeScript all the way, you can git clone the entire repository rather than using npm install @material/web. That will give you the original TypeScript files to include with your build system, rather than using the pre-built published .js files.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@asyncLiz
Comment options

Answer selected by alexmeier-19
Comment options

You must be logged in to vote
2 replies
@asyncLiz
Comment options

@alexmeier-19
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants