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

Cannot serve assets that don't fit its narrow view of acceptable types #3834

Open
dhdaines opened this issue Feb 20, 2023 · 1 comment
Open

Comments

@dhdaines
Copy link

dhdaines commented Feb 20, 2023

I know many bugs seem to have fixed this, but I cannot get it to work. Say that your Angular app wants to read a file that is arbitrary binary data, or even just plain text, and you think, hmm, perhaps I can put this in the files section of my karma.conf.js...

NO, YOU CAN'T! Because Karma will try to parse it as JavaScript, and there is no way to disable this behaviour!

If this is actually fixed then PLEASE UPDATE YOUR DOCUMENTATION. There is NOTHING in http://karma-runner.github.io/6.4/config/files.html that would seem to indicate that this is possible. Do I have to make a preprocessor that simply passes through binary data? Then you should document this and it is not documented at http://karma-runner.github.io/6.4/config/preprocessors.html either.

This is really unacceptable, all the StackOverflow questions seem to indicate that people just rename their files with a .tar extension. I cannot do this.

@dhdaines
Copy link
Author

Sorry, I spent two hours trying to reverse engineer Karma and I am very agitated, I don't mean to insult anyone personally, but I cannot understand how this problem could continue to exist after seemingly many years.

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

No branches or pull requests

1 participant