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

Will not serve files after update to beta #95

Open
togakangaroo opened this issue Aug 25, 2015 · 4 comments
Open

Will not serve files after update to beta #95

togakangaroo opened this issue Aug 25, 2015 · 4 comments

Comments

@togakangaroo
Copy link

I have the following config file

module.exports = function(config) {
  config.set({
    basePath: 'Scripts',
    browserNoActivityTimeout: 30000, //necessary for build server to not vomit
    frameworks: ['mocha', 'chai', 'jspm'],
    browsers: ['Chrome'],
    autoWatch: true,
    jspm: {
      useBundles: true,
      loadFiles: ['tests/*.specs.js'],
      serveFiles: ['**/*.js'],
    },
    reporters: ['mocha', 'growl', 'nunit'],
    proxies: {
    },
    mocha: {
      timeout: 10000,
    },
    client: {
      timeout: 900,
    },
    nunitReporter: {
      outputFile: 'client.test.results.xml',
      suite: '',
    },
  });
};

All my tests (In /Scripts/tests/*.specs.js) worked fine on previous karma-jspm versions. But as of updating jspm to beta.3 (necessary to address this issue) I hit the karma-jspm baseUrl error. So I tried updating karma-jspm to 2.0.1-beta.2 but now all routes to all scripts (specs and regular, loaded via Systemjs or directly via the url bar) are 404'ing.

@maxwellpeterson-wf
Copy link
Contributor

jspm 0.16 stable is out and should be used with karma-jspm 2.0 (stable, non-beta). Could you try it out with the stable releases and see if you experience the same issue?

@togakangaroo
Copy link
Author

@maxwellpeterson-wf huh...just reverted everything, blew away both node_modules and jspm_packages, and updated to karma-jspm 2.0.1 and its still 404ing.

Investigating what changed...I was running tests this morning

@togakangaroo
Copy link
Author

Ok, so jumped to a branch that I know works and starting there.

  • It works (yay)
  • Updated jspm to 0.16.1 from 0.15.5
  • It works
  • Updated karma-jspm to 2.0.1 from 1.1.5
  • It don't work (boo)
WARN [watcher]: Pattern "W:\MyApp\Scripts\jspm_packages\system-polyfills.src.js" does not match any file.
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 44.0.2403 (Windows 8.1 0.0.0)]: Connected on socket W6No3J-IWcl1o6ldVgXo with id 79750515
WARN [web-server]: 404: /Scripts/tests/adminArea.specs.js
WARN [web-server]: 404: /Scripts/tests/doctor-list.specs.js
WARN [web-server]: 404: /Scripts/tests/inline-editable-grid.specs.js
WARN [web-server]: 404: /Scripts/tests/listEditor.specs.js
WARN [web-server]: 404: /Scripts/tests/listStores.specs.js
WARN [web-server]: 404: /Scripts/tests/react-helpers.specs.js
WARN [web-server]: 404: /Scripts/tests/utilities.specs.js
WARN [web-server]: 404: /Scripts/tests/validation.specs.js
Chrome 44.0.2403 (Windows 8.1 0.0.0) ERROR: 'Potentially unhandled rejection [5] Error loading "tests/adminArea.specs" at http://localhost:9876/Scripts/tests/adminArea.specs.js
Not Found: http://localhost:9876/Scripts/tests/adminArea.specs.js (WARNING: non-Error used)'
WARN [Chrome 44.0.2403 (Windows 8.1 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.

Finished in 10.55 secs / 0 secs

Note the first error occurs before karma even opens! That file doesn't exist btw

> ls "W:\MyApp\Scripts\jspm_packages\"

Mode           LastWriteTime       Length Name
----           -------------       ------ ----
d----    2015-08-25  2:14 PM        <DIR> github
d----    2015-08-25  2:15 PM        <DIR> npm
-a---    2015-08-25  2:15 PM           15 .loaderversions
-a---    2015-08-25  2:15 PM        30234 es6-module-loader.js
-a---    2015-08-25  2:15 PM        42423 es6-module-loader.js.map
-a---    2015-08-25  2:15 PM        81455 es6-module-loader.src.js
-a---    2015-08-25  2:15 PM        25562 system.js
-a---    2015-08-25  2:15 PM        36355 system.js.map
-a---    2015-08-25  2:15 PM        73305 system.src.js

@togakangaroo
Copy link
Author

Update: I've been playing around with this (jumping around in my history, clearing out npm, jspm, etc) and just hit a situation where jspm and karma-jspm both are on the latest stable as above, but that first module-loader error no longer happens. The 404 errors still occur though

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

2 participants