Open parky128 opened 6 years ago
I have the same problem. Have you found any solution?
I ran into the same problem and solved it by adding a proxy. I don't know why, but the word "base" seems magical and is making it work for me. Add this to your config:
proxies: {
"/assets/": "/base/assets/"
}
With this I do not get any HTTP status 404 for images and JSONfiles. Take care, that your translations may run async and even the JSONfile is loaded with HTTP status 200, translations may not work.
I have just started using the karma-typescript plugin and am having trouble with my asset and html template files being served.
I am seeing 404 errors when such files are being attempted to serve during test runs, here is my karma config:
In my console output I am seeing:
The unexpected token error for my json is confusing, the opening lines for this file are:
which is valid json and loads up fine when the app is running normally.
My project directory structure is as follows:
As you can see in my karma config, I have attempted to include any html and json files living under my app directory.
I must have missed something fundamental here in my setup.
Can someone point out what I am doing wrong please?