-
Notifications
You must be signed in to change notification settings - Fork 85
data-table\component.ts is missing from the TypeScript compilation #1959
Comments
@TryHardDood Thank you once again! Great contribution * Run tests, build library and documentation automatically when pushed to master. * Deploy documentation to gh-pages branch when pushed to master. * Run just the tests when a pull requests is created. * Run tests, build library and documentation automatically when pushed to master. * Deploy documentation to gh-pages branch when pushed to master. * Run just the tests when a pull requests is created. **Other changes:** * Switched to node 11. (Because gulp fails when the library is built with node 12) * Added quick workaround until #1959 is fixed. closes #1965
Can you please elaborate the workaround |
Sure. Long and short, the Until the material teams next release, a quick workaround for downstream applications is removing the erroneous cd <path>/<app-name>/node_modules/@material/data-table
# List files (filter by *.ts)
ls *.ts -n
-rwxrwxrwx 1 0 0 5454 Aug 18 11:58 adapter.d.ts
-rwxrwxrwx 1 0 0 5261 Aug 18 11:58 adapter.ts
-rwxrwxrwx 1 0 0 2427 Aug 18 11:58 component.d.ts
-rwxrwxrwx 1 0 0 7406 Aug 18 11:58 component.ts
-rwxrwxrwx 1 0 0 1725 Aug 18 11:58 constants.d.ts
-rwxrwxrwx 1 0 0 2034 Aug 18 11:58 constants.ts
-rwxrwxrwx 1 0 0 2742 Aug 18 11:58 foundation.d.ts
-rwxrwxrwx 1 0 0 6604 Aug 18 11:58 foundation.ts
-rwxrwxrwx 1 0 0 1265 Aug 18 11:58 index.d.ts
-rwxrwxrwx 1 0 0 1266 Aug 18 11:58 index.ts
-rwxrwxrwx 1 0 0 1260 Aug 18 11:58 types.d.ts
-rwxrwxrwx 1 0 0 1255 Aug 18 11:58 types.ts
# remove *.ts from @material/data-table (with prompt for each)
rm -i *.ts Hope this helps |
This is a major issue for ivy compilation in Angular 8, hope the team releases the new version soon. |
How's this for timing, upstream update is out. 😄 I'll incorporate changes and release soon. |
That's great, can you look into #1912 (comment) also? |
@maddy2894 Thanks for reporting on Ivy. Be sure to watch issue #1982, Angular Ivy support is coming. |
If you encounter this error it's an upstream issue, and will be resolved in next MDC release.
material-components/material-components-web#4987
Workaround
Remove
*.ts
files from foldernode_modules\@material\data-table
The text was updated successfully, but these errors were encountered: