tsc fails with many "Cannot find module '../../../../material-ui/src/....'" errors #24271
Closed
2 tasks done
Labels
duplicate
This issue or pull request already exists
Current Behavior 😯
Two example errors:
Expected Behavior 🤔
No error. Though note that this only affects the
.d.ts
file, so the application compiles and runs just fine with webpack.Steps to Reproduce 🕹
Compile the project with
tsc
. I couldn't find a way to call tsc on codesandbox.io.Context 🔦
The code pushed to NPM indeed contains that path:
When unpacked,
../../../../material-ui
resolves to./node_modules/material-ui
, which indeed does not exist. I guess there's some config wherematerial-ui
needs to be replaced with@material-ui/core
. Or maybe this is applied when packaging the library even though it shouldn't be? Or maybe this needs to do something smarter than just copy?Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: