You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Yep had this misleading error (TS18002: The 'files' list in config file 'tsconfig.json' is empty) too. Turned out I had a space in front of my config file. So no tsconfig.json was found, which resulted in the default empty files array as mentioned above.
Expected Behaviour
Sources should compile wihout having to define
tsconfig.json
file.Actual Behaviour
They don't.
When using ts-loader without any
tsconfig.json
, the config defaults to:which causes typescript to fail because of the empty
files
list. The error is very misleading though - it says:yet no
tsconfig.json
file does exist at all. It is generated by ts-loader in case when no config is found.Could the default config, generated by ts-loader, be changed, e.g. to config recommended in configuration section in readme?
Similar issues were raised in #405 and #434.
The text was updated successfully, but these errors were encountered: