kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 194 forks source link

Meteor/Karma/flow-router #542

Open almiho opened 8 years ago

almiho commented 8 years ago

Hi all,

(I had just opened another issue which after a very quick and kind reply from PEM turned out to be caused by an embarrassing mistake I made. I hesitate to open another issue but I give it one more shot as this time I am more confident that this is not just stupid me).

I am using Meteor, React and FlowRouter. I have built a little app and everything works fine so far. I am also using jasmine for unit testing which means also velocity and Karma get pulled in.

My problem is that when I look at the browser window that automatically gets opened by Karma all I see in the browser is a debug button on the right and the following text on the left:

Karma v0.13.9 - connected Chromium 48.0.2564 (Ubuntu 0.0.0) is idle

and when I look at the console it shows

There is no route for the path: /context.html

When I hit the debug button a new tab opens with a completely empty page. Looking at the console I see:

There is no route for the path: /debug.html

I searched for context.html on the server and found this:

./.meteor/local/mirrors/jasmine-client-integration/.meteor/local/build/programs/server/assets/packages/sanjo_jasmine/src/client/unit/assets/context.html ./.meteor/local/mirrors/jasmine-server-integration/.meteor/local/build/programs/server/assets/packages/sanjo_jasmine/src/client/unit/assets/context.html ./.meteor/local/build/programs/server/assets/packages/sanjo_jasmine/src/client/unit/assets/context.html ./.meteor/local/karma/jasmine-client-unit/context.html

I have written a number of test cases and they work fine. So the error which causes the two messages above does not prevent the tests from being executed. Using the console I can even debug my app. So everything is kind of working out for me. I just wonder what are context.html and debug.html good for and how can I fix the two errors.

Has anyone come across the same issue before?

Thanks very much! Alex

p.s. Here is my package list

meteor-base             # Packages every Meteor app needs to have
mobile-experience       # Packages for a great mobile UX
mongo                   # The database Meteor supports right now
session                 # Client-side reactive dictionary for your app
jquery                  # Helpful client-side library
tracker                 # Meteor's client-side reactive programming library

standard-minifiers      # JS/CSS minifiers run for production mode
es5-shim                # ECMAScript 5 compatibility for older browsers.
ecmascript              # Enable ECMAScript2015+ syntax in app code

velocity:html-reporter
velocity:console-reporter
sanjo:jasmine

meteorhacks:npm         # support for NPM packages
npm-container           # helper for NPM package support

cosmos:browserify   
kadira:flow-router      # Router
react                   # Renderer
kadira:react-layout     # Renderer helper
stylus                  # enhanced CSS
markoshust:material-ui  # material ui including components library
arunoda commented 8 years ago

@Bollux unfortunately, I have no experience in this matter. I hope someone could help you out. Or try to ask this question on Meteor Forums, I hope you'll get more help there.