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

undefined is not an object using 0.9.8 #161

Open
ultimatemonty opened this issue Aug 26, 2016 · 2 comments
Open

undefined is not an object using 0.9.8 #161

ultimatemonty opened this issue Aug 26, 2016 · 2 comments

Comments

@ultimatemonty
Copy link

using the default config and running ember test is giving me the following error:

not ok 1 PhantomJS 2.1 - Global error: TypeError: undefined is not an object (evaluating 'blanket.options('cliOptions').autostart') at http://localhost:7357/assets/test-loader.js, line 147
    ---
        Log: |
            { type: 'error',
              text: 'TypeError: undefined is not an object (evaluating \'blanket.options(\'cliOptions\').autostart\') at http://localhost:7357/assets/test-loader.js, line 147\n' }

output of ember -v --verbose is

ember-cli: 2.6.2
http_parser: 2.7.0
node: 6.4.0
v8: 5.0.71.60
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2h
os: darwin x64

blanket-options.js is

/* globals blanket, module */

var options = {
    modulePrefix: 'engagement-studio',
    filter: '//.*engagement-studio/.*/',
    antifilter: '//.*(tests|template).*/',
    loaderExclusions: [],
    enableCoverage: true,
    cliOptions: {
        reporters: ['json'],
        autostart: true
    }
};
if (typeof exports === 'undefined') {
    blanket.options(options);
} else {
    module.exports = options;
}

this addon worked for me on an earlier version of ember-cli - not sure if it's ember-cli or something else. I have modified testem,js to include &coverage in the URL but even a standard ember test with no server is crashing.

Unsure how to troubleshoot here - glad to help anyway I can.

@TaylorHG
Copy link

TaylorHG commented Sep 6, 2016

I have the same issue in ember-cli 2.7.0

@jschilli
Copy link
Collaborator

jschilli commented Sep 6, 2016

@ultimatemonty @TaylorHG - weird - I updated to ember-cli 2.70, ran ember new, ember install ember-cli-blanket and ember test - i see a complaint about input sourcemap but the tests run fine

❯ ember -v --verbose
ember-cli: 2.7.0
http_parser: 2.3
node: 0.12.7
v8: 3.28.71.19
uv: 1.6.1
zlib: 1.2.8
modules: 14
openssl: 1.0.1p
os: darwin x64

interesting in #154 that he saw the same and tied to to a node version

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

3 participants