question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"server is not defined" in development environment with ember-cli 2.3.0

See original GitHub issue

Recently updated a bunch of dependencies but primarily ember-cli to 2.3.0 and now server is no longer defined on window when running in the development environment. Running in the test environment it is defined as expected.

Using:

  • ember-cli@2.3.0
  • ember-cli-mirage@0.1.11
  • ember-cli-mocha@0.10.0
  • ember#2.3.1
  • ember-cli-test-loader#0.2.2
  • ember-mocha-adapter#0.3.1
  • mocha#2.4.5

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
bmrsnycommented, Feb 24, 2016

I am getting ReferenceError: server is not defined in testing. I am using the most recent beta "ember-cli-mirage": "0.2.0-beta.5"

i am only getting this error in my instance initializer tests. Other tests seem fine.

Also have this in my development environment… I just want to use mirage for testing.

 ENV['ember-cli-mirage'] = {
    enabled: false
   };
1reaction
SaladForkcommented, Feb 24, 2016

Terribly embarrassed, after some investigation my issue was caused by ember-cli-mirage.enabled being set to false (in which case server not being defined is expected). Sorry for the noise and thanks for your time.

Not sure what issue @bmrsny is seeing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"server is not defined" in development environment with ...
Recently updated a bunch of dependencies but primarily ember-cli to 2.3.0 and now server is no longer defined on window when running in...
Read more >
ember error "Specified 2.3.0 Installed 2.4.3" on "ember s"
When I try to start the server I get: glaucon@polo ~/dev/ember-django-testbed $ ember s Missing bower packages: Package: ember * ...
Read more >
Ember CLI - Getting Started
Ember CLI, Ember's command line interface, provides a standard project structure, a set of development tools, and an addon system.
Read more >
danlynn/ember-cli - Docker Image | Docker Hub
This image contains everything you need to have a working development environment for ember-cli. The container's working dir is /myapp so that you...
Read more >
ember-auto-import
ember -auto-import. Just import from NPM, with zero configuration. Installation. npm install --save-dev ember-auto-import webpack.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found