Closed JSlain closed 6 years ago
@JSlain could you share a test repo that reproduce the issue, thank you.
Sure, here it is:
https://github.com/JSlain/karma-jspm-189
Maybe it's the way i configured the karma plugin. We're using this setup for a year without problems...
Found out.
Karma configuration:
basePath: './src',
...
jspm: {
// Edit this to your needs
loadFiles: [
'jspm_packages/system-polyfills.js',
{pattern: '**/*.spec.*', nocache: true}],
cachePackages: false
},
Much more simpler!
@JSlain nice :)
I too was getting this error, and confirmed that this fixed the error. I can't help but wonder if we should consider adding this advice to the core README documentation?
basePath: './src',
We're trying to use RxJS in a javascript application. It works pretty well at rutime, but our tests fails with the following error:
Here's my karma configuration (jspm section)
Something strange is that every other package get loaded well. For example:
http://localhost:12505/base/src/jspm_packages/npm/rxjs@5.5.2/Rx.js
In the case of process.js, here's the url trying to be resolved:
http://localhost:12505/base/process.js
It doesn't make any sense, this is not the pas supposed to be searched at all. Even my
config.js
shows it should look somewhere else.