-
Notifications
You must be signed in to change notification settings - Fork 440
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
'server' is not defined #953
Comments
is the error coming from the acceptance test or from JSHint? |
I found solution at #401 Thank you :) |
possible you did not install with You can do this yourself, or you can run:
|
Just came across this error as well. Adding |
@dustinfarris I was run |
@imhuytq weird, this might be broken then. can you reopen the issue? |
Ran into this issue this week - generated an acceptance test, tried to use |
I've even compared it to another app (2.3.4) and I don't see anything different in it, as to why the |
anyone else run into this issue? |
I'm also having this issue, on Ember 2.10.0. I'm using tests/.eslintrc.js
|
Incase it could help debugging, here is my full package file
|
mine looks pretty much the same as mine...I don't understand what could be happening with a package that started disabling |
@albertpak I'm not quite sure what I did since I was on a dirty branch, but I suspect that somewhere the config setting for mirage changed from defaulting to true for testing env to false. After setting Mirage to true for the test env, the server error went away. Again, I'm not sure this is the actual solution since I had tried alot of stuff to fix this, but give it a try. |
@taheilo in your app, are you using a |
@albertpak thats it. And no, im not using |
Figured it out - i had a system wide setting for the environment to be set to development mode, so the app never went into Lesson learned - pay attention even closer! lol So take away is to enable the server - make sure you set the settings correctly in your Hopefully this will somehow help someone else :) |
Oh lol :) Good that you got it solved. |
That's weird...not to familiar with that function, but loading of mirage should be separate from that. Check in your |
Sounds like this isn't a Mirage issue, so I'll close it for now |
This happened to me with a fresh application recently. To test it out, I tried making a new application and running
In none of them did the correct lines get added to the It was easy enough for me to fix but I find it concerning because Mirage is used in the guides and it might be confusing for newcomers. |
@backspace Ember-CLI use fs-extra.outputFile function for insertIntoFile function. |
hmm, do you have any idea of how we could use that understanding to fix it, @imhuytq? |
I was test fs-extra.outputFile function on new project (not Ember) and work correctly. |
I writing an acceptance test and got an error:
acceptance/redirect-test.js file
Ember: 2.9.1
ember-cli: 2.9.1
ember-cli-mirage: 0.2.4
node: 6.8.0
phantomjs: 2.1.1
The text was updated successfully, but these errors were encountered: