-
Notifications
You must be signed in to change notification settings - Fork 52
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
Error loading files #24
Comments
I'm seeing this issue too on v1.1.1. SystemJS under karma tries to load from /base/jspm_packages/ whereas my actual modules folder is at /www/jspm_packages/ as configured in package.json. Seems like the SystemJS baseURL for karma-jspm is hard-coded atm: c14be8a |
All files served by karma's built-in server need to be prefaced with If your jspm_packages are in jspm: {
packages: "www/jspm_packages/"
} It will then make a request to |
Hi, I do have this set in karma.conf.js:
But I still get
when I do
in my test. As a side note, the test completes properly when I change this from the generated www/config.js:
to
But then module loading in my application breaks down. Looks like my issue has something to do with config.js being placed in a different location from karma.conf.js, and thus using different relative paths (and the jspm.packages config in karma.conf.js doesn't seem to be working?). Doesn't look like this is the case for Frikki though. |
Hi @lewisl9029, proxies: {
'/base/jspm_packages/': '/base/www/jspm_packages/'
} Also, I want to ask @maxwellpeterson-wf are jspm.packages and jspm.config settings removed? I cant find it in issues but it seems to be true. It sounds so logical for me because package.json already has this configuration. |
@djindjic that proxy works for you? I have no idea why but I cannot get a proxy to a directory work at all. I always have to spin up another node server running on different port and use it as base. Like this: https://gist.github.com/capaj/8db4533c3a1cab1bf930 Could you post your full karma.conf.js? |
You can take a look to my jspm-sample project |
Directory structure:
In
karma.conf.js
:When I run karma, files in the
app
directory are not loaded, as karma prefixes the path withbase/
. How do I solve this?The text was updated successfully, but these errors were encountered: