wallabyjs / atom-wallaby

Wallaby.js atom package starter
Other
57 stars 6 forks source link

Uncaught TypeError: _.reduce is not a function #69

Open design1online opened 5 years ago

design1online commented 5 years ago

I keep getting issues with things saying they're not a function when Wallaby is calling underscore/lodash. Here is my config file:

module.exports = function (wallaby) {
  return {
    files: ['src/**/*.js', '!src/**/__tests__/*.js', 'setupTests.js'],

    tests: ['src/**/__tests__/*.js'],

    env: {
      type: 'node',
      runner: 'node',
    },

    compilers: {
      '**/*.js': wallaby.compilers.babel(),
    },

    testFramework: 'jest',
  };
};

Atom: 1.34.0 x64 Electron: 2.0.16 OS: Mac OS X 10.11.6 Thrown From: atom-wallaby package 1.0.26

Stack Trace

Uncaught TypeError: _.reduce is not a function

At /Users/.atom/packages/atom-wallaby/wallaby/client.js:14

TypeError: _.reduce is not a function
    at Object._error (/packages/atom-wallaby/wallaby/client.js:14:28035)
    at Object.tests (/packages/atom-wallaby/wallaby/client.js:14:27688)
    at b.value (/packages/atom-wallaby/wallaby-atom/index.js:15:3443)
    at b.value (/packages/atom-wallaby/wallaby-atom/index.js:15:463)
    at b.wrapper (/packages/atom-wallaby/wallaby/node_modules/lodash/index.js:2914:56)
    at delayed (/packages/atom-wallaby/wallaby/node_modules/lodash/index.js:6879:27)

Commands

     -5:25.2.0 docblockr:parse-enter (input.hidden-input)
     -5:25.2.0 editor:newline (input.hidden-input)
  2x -5:04.5.0 core:save (input.hidden-input)
     -4:59 core:cut (input.hidden-input)
     -4:53.4.0 docblockr:parse-enter (input.hidden-input)
     -4:53.4.0 editor:newline (input.hidden-input)
     -4:53.2.0 core:paste (input.hidden-input)
     -4:36.1.0 core:save (input.hidden-input)
     -1:13.4.0 docblockr:parse-enter (input.hidden-input)
     -1:13.4.0 editor:newline (input.hidden-input)
     -1:08.3.0 core:move-right (input.hidden-input)
  3x -1:08.0 core:backspace (input.hidden-input)
  2x -0:55.7.0 core:save (input.hidden-input)
     -0:38.4.0 core:backspace (input.hidden-input)
  5x -0:34.6.0 core:save (input.hidden-input)
  5x -0:30.5.0 core:undo (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-wallaby 1.0.26 
autocomplete-json 5.5.2 
autocomplete-modules 2.2.6 
autocomplete-paths 2.12.2 
busy-signal 2.0.0 
color-picker 2.3.0 
docblockr 0.13.7 
emmet 2.4.3 
file-icons 2.1.27 
haxe 0.8.14 
intentions 1.1.5 
language-haxe 0.6.0 
line-count 0.5.0 
linter 2.2.0 
linter-csslint undefined 
linter-eslint 8.5.0 
linter-jsonlint 1.3.0 
linter-php 1.5.1 
linter-phpcs 1.6.11 
linter-phplint 0.1.0 
linter-sass-lint 1.8.3 
linter-ui-default 1.7.1 
php-cs-fixer 4.1.1 
phpunit 1.2.0 
pigments 0.40.2 
platformio-ide-terminal 2.8.4 
split-diff 1.5.4 
tabs-to-spaces 1.0.5 
terminal-plus 0.14.5 
wordcount 3.0.0 
ArtemGovorov commented 5 years ago

Unfortunately we can't reproduce the issue locally with the same Atom/OS version. It looks like some of the other packages you have installed may be affecting the plugin. Please try