wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
758 stars 45 forks source link

Failed to load configuration file: Automatic Angular CLI configuration error: n is not a function #2720

Closed sdrowe closed 3 years ago

sdrowe commented 3 years ago

When trying to run Wallaby in Angular 9.1.0 with automatic configuration, I get the following error:

Failed to load configuration file: Automatic Angular CLI configuration error: n is not a function

Wallaby diagnostics report

Failed to load configuration file: Automatic Angular CLI configuration error: n is not a function

smcenlly commented 3 years ago

Normally we see a bit more detail in the diagnostics report, did you perform the steps below? If not, can you please do so as the report will have additional information that we need to further diagnose your problem.


If you're not getting a diagnostics report, could you please copy the Wallaby Console output:

Could you also please provide the following files:

If you delete node_modules and package-lock.json (or yarn.lock) and then reinstall node modules, do you still have the error?

sdrowe commented 3 years ago

I did try removing node_modules and package-lock.json. I tried this on a Mac and on a windows machine.

package.json


{
  "name": "pricing",
  "version": "0.0.0",
  "license": "MIT",
  "private": true,
  "scripts": {
    "CUSTOM": "---------------------------------------------------------------------------------------------------------------------",
    "ready": "npx lint-staged && npm run affected:test:ci",
    "stylelint": "stylelint",
    "stylelint:all": "stylelint --fix '**/*.scss'",
    "storybook": "start-storybook",
    "pre-commit": "npm run format && git add .",
    "test:shared:mem-increase": "node --max_old_space_size=16192 ./node_modules/@nrwl/cli/bin/nx test shared --watch=false --progress=false --browsers=ChromeHeadlessNoSandbox --code-coverage",
    "GENERICS": "-------------------------------------------------------------------------------------------------------------------",
    "postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
    "ng": "nx",
    "nx": "nx",
    "SHARED": "---------------------------------------------------------------------------------------------------------------------",
    "test:shared": "npm run test shared",
    "test:watch:shared": "npm run test:watch shared",
    "test:ci:shared": "npm run test:ci shared",
    "lint:shared": "npm run lint shared",
    "CUSTOMER": "-------------------------------------------------------------------------------------------------------------------",
    "start:customer": "npm run start customer",
    "start:high-memory:customer": "npm run start:high-memory customer",
    "start:hmr:customer": "npm run start:hmr customer",
    "start:no-host-check:customer": "npm run start:no-host-check:customer customer",
    "build:customer": "npm run build customer",
    "build:prod:customer": "npm run build:prod customer -- --base-href=/customer/",
    "test:customer": "npm run test customer",
    "test:watch:customer": "npm run test:watch customer",
    "test:ci:customer": "npm run test:ci customer",
    "lint:customer": "npm run lint customer",
    "e2e:customer": "npm run e2e customer-e2e",
    "e2e:server:customer": "npm run e2e:server customer-e2e",
    "e2e:ci:customer": "npm run e2e:ci customer-e2e",
    "CARRIER": "--------------------------------------------------------------------------------------------------------------------",
    "start:carrier": "npm run start carrier",
    "start:high-memory:carrier": "npm run start:high-memory carrier",
    "start:hmr:carrier": "npm run start:hmr carrier",
    "start:no-host-check:carrier": "npm run start:no-host-check:carrier carrier",
    "build:carrier": "npm run build carrier",
    "build:prod:carrier": "npm run build:prod carrier -- --base-href=/carrier/",
    "test:carrier": "npm run test carrier",
    "test:watch:carrier": "npm run test:watch carrier",
    "test:ci:carrier": "npm run test:ci carrier",
    "lint:carrier": "npm run lint carrier",
    "e2e:carrier": "npm run e2e carrier-e2e",
    "e2e:server:carrier": "npm run e2e:server carrier-e2e",
    "e2e:ci:carrier": "npm run e2e:ci carrier-e2e",
    "APP-DEFUALT-CUSTOMER": "-------------------------------------------------------------------------------------------------------",
    "start": "nx serve",
    "start:high-memory": "node --max_old_space_size=16192 ./node_modules/@nrwl/cli/bin/nx serve --disable-host-check --host=0.0.0.0",
    "start:hmr": "nx serve --configuration hmr --live-reload true",
    "start:no-host-check": "nx serve  --disable-host-check --host=0.0.0.0",
    "build": "nx build",
    "build:prod": "nx build --prod --aot --base-href=/customer/",
    "test": "nx test --code-coverage --browsers=Chrome",
    "test:watch": "nx test  --browsers=Chrome --watch=true",
    "test:ci": "nx test --watch=false --progress=false --code-coverage --browsers=ChromeHeadlessNoSandbox",
    "lint": "nx lint",
    "e2e": "nx e2e --watch",
    "e2e:server": "nx e2e --watch --configuration=securityless",
    "e2e:ci": "nx e2e --headless --configuration=securityless",
    "NX-COMMANDS": "----------------------------------------------------------------------------------------------------------------",
    "workplace:lint": "nx workspace-lint",
    "affected:apps": "nx affected:apps",
    "affected:libs": "nx affected:libs",
    "affected:build": "nx affected:build",
    "affected:e2e": "nx affected:e2e",
    "affected:test:ci": "nx affected:test --watch=false --progress=false --browsers=ChromeHeadlessNoSandbox --code-coverage",
    "affected:lint": "nx affected:lint",
    "affected:dep-graph": "nx affected:dep-graph",
    "affected": "nx affected",
    "update": "ng update @nrwl/workspace",
    "workspace-schematic": "nx workspace-schematic",
    "dep-graph": "nx dep-graph",
    "format": "nx format:write",
    "format:write": "nx format:write",
    "format:check": "nx format:check",
    "help": "nx --help"
  },
  "simple-git-hooks": {
    "pre-commit": "npx lint-staged"
  },
  "lint-staged": {
    "*.{js,json,ts,scss,css,html}": "nx format:write --files",
    "*.scss": "stylelint --fix",
    "apps/carrier-e2e/**/**.{js,json,ts,html}": "eslint -c apps/carrier-e2e/.eslintrc.js --fix",
    "apps/carrier/**/**.{js,json,ts,html}": "eslint -c apps/carrier/.eslintrc.js --fix",
    "apps/customer-e2e/**/**.{js,json,ts,html}": "eslint -c apps/customer-e2e/.eslintrc.js --fix",
    "apps/customer/**/**.{js,json,ts,html}": "eslint -c apps/customer/.eslintrc.js --fix",
    "libs/shared/**/**.{js,json,ts,html}": "eslint -c libs/shared/.eslintrc.js --fix"
  },
  "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "all": true,
    "excludeAfterRemap": false
  },
  "dependencies": {
    "@angular/animations": "9.1.0",
    "@angular/cdk": "^8.2.3",
    "@angular/common": "9.1.0",
    "@angular/compiler": "9.1.0",
    "@angular/core": "9.1.0",
    "@angular/forms": "9.1.0",
    "@angular/platform-browser": "9.1.0",
    "@angular/platform-browser-dynamic": "9.1.0",
    "@angular/pwa": "^0.901.15",
    "@angular/router": "9.1.0",
    "@angular/service-worker": "9.1.0",
    "@azure/storage-blob": "^10.3.0",
    "@fullcalendar/core": "^5.6.0",
    "@jbhunt-ds/primeng-theme": "6.5.0",
    "@jbhunt/nglp": "^0.2.1",
    "@ngrx/effects": "^9.2.1",
    "@ngrx/entity": "^9.2.1",
    "@ngrx/router-store": "^9.2.1",
    "@ngrx/schematics": "^9.2.1",
    "@ngrx/store": "^9.2.1",
    "@ngrx/store-devtools": "^9.2.1",
    "@nrwl/angular": "9.8.0",
    "@types/lodash": "^4.14.149",
    "@types/rox-browser": "^5.0.1",
    "babel-polyfill": "^6.26.0",
    "chart.js": "^2.8.0",
    "classlist.js": "^1.1.20150312",
    "core-js": "^2.5.4",
    "editor.js": "^0.1.0",
    "file-saver": "^1.3.8",
    "http-status-codes": "^1.4.0",
    "immer": "^6.0.3",
    "keycloak-angular": "^7.1.0",
    "keycloak-js": "^9.0.0",
    "lib-platform-components": "8.0.15",
    "lib-platform-services": "8.0.13",
    "lodash": "^4.17.15",
    "mammoth": "^1.4.9",
    "moment": "^2.24.0",
    "moment-range": "^4.0.2",
    "moment-timezone": "^0.5.28",
    "ng-lint-staged": "^0.1.6",
    "ng2-currency-mask": "^5.3.1",
    "ng2-pdf-viewer": "6.4.1",
    "ngx-bootstrap": "^5.6.1",
    "ngx-cacheable": "^1.4.1",
    "ngx-drag-scroll": "^7.3.4",
    "ngx-hotjar": "^0.0.5",
    "ngx-perfect-scrollbar": "^7.2.1",
    "ngx-quill": "^7.3.4",
    "postcss-custom-properties": "^9.1.1",
    "primeflex": "^1.0.0",
    "primeng": "9.1.0",
    "quill": "^1.3.7",
    "rox-browser": "^5.0.0",
    "rxjs": "6.5.5",
    "tslib": "^1.10.0",
    "underscore": "^1.9.1",
    "uuid": "^3.4.0",
    "xlsx": "^0.15.6",
    "zone.js": "^0.9.1"
  },
  "devDependencies": {
    "@angular-builders/custom-webpack": "9.2.0",
    "@angular-devkit/build-angular": "0.901.0",
    "@angular-eslint/builder": "^1.0.0",
    "@angular-eslint/eslint-plugin": "2.0.2",
    "@angular-eslint/eslint-plugin-template": "2.0.2",
    "@angular-eslint/template-parser": "2.0.2",
    "@angular/cli": "9.1.0",
    "@angular/compiler-cli": "9.1.0",
    "@angular/language-service": "9.1.0",
    "@angularclass/hmr": "^2.1.3",
    "@babel/compat-data": "7.8.0",
    "@babel/core": "^7.6.4",
    "@cypress/code-coverage": "^1.12.2",
    "@istanbuljs/nyc-config-typescript": "^1.0.1",
    "@nrwl/cli": "12.0.7",
    "@nrwl/cypress": "12.0.7",
    "@nrwl/eslint-plugin-nx": "12.0.7",
    "@nrwl/linter": "12.0.7",
    "@nrwl/tao": "12.0.7",
    "@nrwl/workspace": "12.0.7",
    "@types/file-saver": "^2.0.1",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "^2.0.8",
    "@types/moment": "^2.13.0",
    "@types/moment-timezone": "^0.5.13",
    "@types/node": "~8.9.4",
    "@types/uuid": "^7.0.2",
    "@typescript-eslint/eslint-plugin": "^4.12.0",
    "@typescript-eslint/eslint-plugin-tslint": "^4.12.0",
    "@typescript-eslint/parser": "^4.12.0",
    "@typescript-eslint/typescript-estree": "^4.12.0",
    "babel-loader": "^8.0.6",
    "buffer": "^5.4.3",
    "codelyzer": "6.0.1",
    "cypress": "6.9.1",
    "cypress-file-upload": "^4.1.1",
    "dotenv": "6.2.0",
    "eslint": "^7.17.0",
    "eslint-config-prettier": "8.1.0",
    "eslint-import-resolver-typescript": "^2.3.0",
    "eslint-import-resolver-webpack": "^0.13.0",
    "eslint-plugin-cypress": "^2.11.2",
    "eslint-plugin-jasmine": "^4.1.1",
    "eslint-plugin-jsdoc": "^31.0.2",
    "eslint-plugin-prefer-arrow": "^1.2.2",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
    "htmlhint": "^0.14.2",
    "istanbul-instrumenter-loader": "^3.0.1",
    "istanbul-lib-coverage": "^3.0.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "5.0.2",
    "karma": "~4.0.0",
    "karma-chrome-launcher": "3.1.0",
    "karma-coverage": "^2.0.1",
    "karma-coverage-istanbul-reporter": "3.0.3",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "lint-staged": "^10.5.4",
    "ng-mocks": "^8.1.0",
    "ngx-build-plus": "^9.0.6",
    "npm": "~6.10.0",
    "nyc": "15.1.0",
    "prettier": "^2.2.1",
    "prettier-eslint-cli": "^5.0.0",
    "prettier-stylelint": "^0.4.2",
    "process": "^0.11.10",
    "protractor": "7.0.0",
    "simple-git-hooks": "^2.2.0",
    "source-map-support": "^0.5.19",
    "stylelint": "^13.8.0",
    "stylelint-config-prettier": "^8.0.2",
    "stylelint-config-sass-guidelines": "^7.1.0",
    "stylelint-config-standard-scss": "^1.1.0",
    "stylelint-no-unused-selectors": "^1.0.33",
    "stylelint-order": "^4.1.0",
    "ts-node": "~7.0.0",
    "tslint": "^5.20.1",
    "tslint-config-airbnb": "^5.11.2",
    "tslint-config-prettier": "^1.18.0",
    "tslint-jasmine-rules": "^1.6.0",
    "tslint-lines-between-class-members": "^1.3.6",
    "typescript": "3.8.3",
    "url": "^0.11.0"
  }
}

angular.json


{
  "version": 1,
  "projects": {
    "customer": {
      "projectType": "application",
      "schematics": {
        "@nrwl/angular:component": {
          "style": "scss"
        }
      },
      "root": "apps/customer",
      "sourceRoot": "apps/customer/src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/apps/customer",
            "index": "apps/customer/src/index.html",
            "main": "apps/customer/src/main.ts",
            "polyfills": "apps/customer/src/polyfills.ts",
            "tsConfig": "apps/customer/tsconfig.app.json",
            "aot": false,
            "assets": [
              "apps/customer/src/favicon.ico",
              "apps/customer/src/assets",
              {
                "glob": "**/*",
                "input": "node_modules/@jbhunt-ds/icons/dist/font",
                "output": "/assets/fonts/jbh-icon"
              },
              {
                "glob": "**/*",
                "input": "node_modules/lib-platform-services/src",
                "output": "/assets"
              },
              "apps/customer/src/manifest.webmanifest"
            ],
            "styles": [
              {
                "input": "node_modules/@jbhunt-ds/icons/dist/font/jbh-icons.scss",
                "bundleName": "jbhIcons"
              },
              {
                "input": "node_modules/primeng/resources/primeng.min.css",
                "bundleName": "primengBase"
              },
              {
                "input": "apps/customer/src/styles.scss",
                "bundleName": "globals"
              }
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "apps/customer/src/environments/environment.ts",
                  "with": "apps/customer/src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb",
                  "maximumError": "10kb"
                }
              ],
              "serviceWorker": true,
              "ngswConfigPath": "apps/customer/ngsw-config.json"
            },
            "securityless": {
              "fileReplacements": [
                {
                  "replace": "libs/shared/src/lib/shell/app.initializer.ts",
                  "with": "libs/shared/src/lib/testing/mock.initializer.ts"
                },

                {
                  "replace": "libs/shared/src/lib/services/user.service.ts",
                  "with": "libs/shared/src/lib/testing/mock.nokey.user.service.ts"
                }
              ]
            }
          }
        },
        "serve": {
          "builder": "ngx-build-plus:dev-server",
          "options": {
            "browserTarget": "customer:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "customer:build:production"
            },
            "securityless": {
              "browserTarget": "customer:build:securityless",
              "extraWebpackConfig": "./apps/customer-e2e/coverage.webpack.js"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "customer:build"
          }
        },
        "lint": {
          "builder": "@nrwl/linter:eslint",
          "options": {
            "lintFilePatterns": ["apps/customer/src/**/*.ts", "apps/customer/src/**/*.html"]
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "apps/customer/src/test.ts",
            "tsConfig": "apps/customer/tsconfig.spec.json",
            "karmaConfig": "apps/customer/karma.conf.js",
            "polyfills": "apps/customer/src/polyfills.ts",
            "styles": [],
            "scripts": [],
            "assets": ["apps/customer/src/manifest.webmanifest"]
          }
        }
      }
    },
    "customer-e2e": {
      "root": "apps/customer-e2e",
      "sourceRoot": "apps/customer-e2e/src",
      "projectType": "application",
      "architect": {
        "e2e": {
          "builder": "@nrwl/cypress:cypress",
          "options": {
            "cypressConfig": "apps/customer-e2e/cypress.json",
            "tsConfig": "apps/customer-e2e/tsconfig.e2e.json"
          },
          "configurations": {
            "securityless": {
              "devServerTarget": "customer:serve:securityless"
            },
            "production": {
              "devServerTarget": "customer:serve:production"
            }
          }
        },
        "lint": {
          "builder": "@nrwl/linter:eslint",
          "options": {
            "lintFilePatterns": ["apps/customer-e2e/**/*.{js,ts}"]
          }
        }
      }
    },
    "carrier": {
      "projectType": "application",
      "schematics": {
        "@nrwl/angular:component": {
          "style": "scss"
        }
      },
      "root": "apps/carrier",
      "sourceRoot": "apps/carrier/src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/apps/carrier",
            "index": "apps/carrier/src/index.html",
            "main": "apps/carrier/src/main.ts",
            "polyfills": "apps/carrier/src/polyfills.ts",
            "tsConfig": "apps/carrier/tsconfig.app.json",
            "aot": false,
            "assets": [
              "apps/carrier/src/favicon.ico",
              "apps/carrier/src/assets",
              {
                "glob": "**/*",
                "input": "node_modules/@jbhunt-ds/icons/dist/font",
                "output": "/assets/fonts/jbh-icon"
              },
              {
                "glob": "**/*",
                "input": "node_modules/lib-platform-services/src",
                "output": "/assets"
              },
              "apps/carrier/src/manifest.webmanifest"
            ],
            "styles": [
              {
                "input": "node_modules/@jbhunt-ds/icons/dist/font/jbh-icons.scss",
                "bundleName": "jbhIcons"
              },
              {
                "input": "node_modules/primeng/resources/primeng.min.css",
                "bundleName": "primengBase"
              },
              {
                "input": "apps/carrier/src/styles.scss",
                "bundleName": "globals"
              }
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "apps/carrier/src/environments/environment.ts",
                  "with": "apps/carrier/src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb",
                  "maximumError": "10kb"
                }
              ],
              "serviceWorker": true,
              "ngswConfigPath": "apps/carrier/ngsw-config.json"
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "carrier:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "carrier:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "carrier:build"
          }
        },
        "lint": {
          "builder": "@nrwl/linter:eslint",
          "options": {
            "lintFilePatterns": ["apps/carrier/src/**/*.ts", "apps/carrier/src/**/*.html"]
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "apps/carrier/src/test.ts",
            "tsConfig": "apps/carrier/tsconfig.spec.json",
            "karmaConfig": "apps/carrier/karma.conf.js",
            "polyfills": "apps/carrier/src/polyfills.ts",
            "styles": [],
            "scripts": [],
            "assets": ["apps/carrier/src/manifest.webmanifest"]
          }
        }
      }
    },
    "carrier-e2e": {
      "root": "apps/carrier-e2e",
      "sourceRoot": "apps/carrier-e2e/src",
      "projectType": "application",
      "architect": {
        "e2e": {
          "builder": "@nrwl/cypress:cypress",
          "options": {
            "cypressConfig": "apps/carrier-e2e/cypress.json",
            "tsConfig": "apps/carrier-e2e/tsconfig.e2e.json",
            "devServerTarget": "carrier:serve"
          },
          "configurations": {
            "local": {
              "devServerTarget": "customer:serve"
            },
            "production": {
              "devServerTarget": "carrier:serve:production"
            }
          }
        },
        "lint": {
          "builder": "@nrwl/linter:eslint",
          "options": {
            "lintFilePatterns": ["apps/customer-e2e/**/*.{js,ts}"]
          }
        }
      }
    },
    "shared": {
      "projectType": "library",
      "root": "libs/shared",
      "sourceRoot": "libs/shared/src",
      "prefix": "app",
      "architect": {
        "lint": {
          "builder": "@nrwl/linter:eslint",
          "options": {
            "lintFilePatterns": ["libs/shared/src/**/*.ts", "libs/shared/src/**/*.html"]
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "libs/shared/src/test.ts",
            "tsConfig": "libs/shared/tsconfig.spec.json",
            "karmaConfig": "libs/shared/karma.conf.js"
          }
        }
      },
      "schematics": {
        "@nrwl/angular:component": {
          "styleext": "scss"
        }
      }
    }
  },
  "cli": {
    "defaultCollection": "@nrwl/angular"
  },
  "schematics": {
    "@nrwl/angular": {
      "application": {
        "linter": "eslint"
      },
      "library": {
        "linter": "eslint"
      },
      "storybook-configuration": {
        "linter": "eslint"
      }
    },
    "@nrwl/angular:application": {
      "unitTestRunner": "karma",
      "e2eTestRunner": "cypress"
    },
    "@nrwl/angular:library": {
      "unitTestRunner": "karma"
    },
    "@nrwl/angular:component": {
      "style": "scss"
    }
  },
  "defaultProject": "customer"
}

Diagnostics:


wallaby.js started
core v1.0.1085
2021-06-01T19:17:22.474Z angular/cli config Detecting Angular CLI.
2021-06-01T19:17:22.479Z angular/cli config Detected Angular CLI.
2021-06-01T19:17:23.149Z angular/cli karma workspace config Configuring.
2021-06-01T19:17:29.286Z angular/cli karma workspace config Using virtual C:/Users/user/IdeaProjects/app_pricing_ui/apps/customer/src/test.ts.
2021-06-01T19:17:29.287Z angular/cli karma workspace config Using virtual C:/Users/user/IdeaProjects/app_pricing_ui/apps/carrier/src/test.ts.
2021-06-01T19:17:29.289Z angular/cli karma workspace config Using virtual C:/Users/user/IdeaProjects/app_pricing_ui/libs/shared/src/test.ts.
2021-06-01T19:17:29.289Z angular/cli karma workspace config Calling test command for customer.
  2021-06-01T19:17:29.290Z angular/cli karma workspace config Using virtual C:\Users\user\IdeaProjects\app_pricing_ui\tsconfig.wallaby.spec.json.
2021-06-01T19:17:30.161Z angular/cli config TypeError: n is not a function
at t._getWebpackConfigurations (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:16:20995)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:17:12496
at generateWebpackConfig (C:\Users\user\IdeaProjects\app_pricing_ui\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:62:22)
at async generateBrowserWebpackConfigFromContext (C:\Users\user\IdeaProjects\app_pricing_ui\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:137:20)
2021-06-01T19:17:30.164Z angular/cli config Angular.json:
{
  version: 1,
    projects: {
  customer: {
    projectType: 'application',
      schematics: { '@nrwl/angular:component': { style: 'scss' } },
    root: 'apps/customer',
      sourceRoot: 'apps/customer/src',
      prefix: 'app',
      architect: {
      build: {
        builder: '@angular-devkit/build-angular:browser',
          options: {
          outputPath: 'dist/apps/customer',
            index: 'apps/customer/src/index.html',
            main: 'apps/customer/src/main.ts',
            polyfills: 'apps/customer/src/polyfills.ts',
            tsConfig: 'apps/customer/tsconfig.app.json',
            aot: false,
            assets: [
            'apps/customer/src/favicon.ico',
            'apps/customer/src/assets',
            { glob: '**/*', input: 'node_modules/@jbhunt-ds/icons/dist/font', output: '/assets/fonts/jbh-icon' },
            { glob: '**/*', input: 'node_modules/lib-platform-services/src', output: '/assets' },
            'apps/customer/src/manifest.webmanifest'
          ],
            styles: [
            { input: 'node_modules/@jbhunt-ds/icons/dist/font/jbh-icons.scss', bundleName: 'jbhIcons' },
            { input: 'node_modules/primeng/resources/primeng.min.css', bundleName: 'primengBase' },
            { input: 'apps/customer/src/styles.scss', bundleName: 'globals' }
          ],
            scripts: []
        },
        configurations: {
          production: {
            fileReplacements: [ { replace: 'apps/customer/src/environments/environment.ts', with: 'apps/customer/src/environments/environment.prod.ts' } ],
              outputHashing: 'all',
              sourceMap: false,
              extractCss: true,
              namedChunks: false,
              aot: true,
              extractLicenses: true,
              vendorChunk: false,
              buildOptimizer: true,
              budgets: [ { type: 'initial', maximumWarning: '2mb', maximumError: '5mb' }, { type: 'anyComponentStyle', maximumWarning: '6kb', maximumError: '10kb' } ],
              serviceWorker: true,
              ngswConfigPath: 'apps/customer/ngsw-config.json'
          },
          securityless: {
            fileReplacements: [
              { replace: 'libs/shared/src/lib/shell/app.initializer.ts', with: 'libs/shared/src/lib/testing/mock.initializer.ts' },
              { replace: 'libs/shared/src/lib/services/user.service.ts', with: 'libs/shared/src/lib/testing/mock.nokey.user.service.ts' }
            ]
          }
        }
      },
      serve: {
        builder: 'ngx-build-plus:dev-server',
          options: { browserTarget: 'customer:build' },
        configurations: {
          production: { browserTarget: 'customer:build:production' },
          securityless: { browserTarget: 'customer:build:securityless', extraWebpackConfig: './apps/customer-e2e/coverage.webpack.js' }
        }
      },
      'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'customer:build' } },
      lint: { builder: '@nrwl/linter:eslint', options: { lintFilePatterns: [ 'apps/customer/src/**/*.ts', 'apps/customer/src/**/*.html' ] } },
      test: {
        builder: '@angular-devkit/build-angular:karma',
          options: {
          main: 'apps/customer/src/test.ts',
            tsConfig: 'apps/customer/tsconfig.spec.json',
            karmaConfig: 'apps/customer/karma.conf.js',
            polyfills: 'apps/customer/src/polyfills.ts',
            styles: [],
            scripts: [],
            assets: [ 'apps/customer/src/manifest.webmanifest' ]
        }
      }
    }
  },
  'customer-e2e': {
    root: 'apps/customer-e2e',
      sourceRoot: 'apps/customer-e2e/src',
      projectType: 'application',
      architect: {
      e2e: {
        builder: '@nrwl/cypress:cypress',
          options: { cypressConfig: 'apps/customer-e2e/cypress.json', tsConfig: 'apps/customer-e2e/tsconfig.e2e.json' },
        configurations: { securityless: { devServerTarget: 'customer:serve:securityless' }, production: { devServerTarget: 'customer:serve:production' } }
      },
      lint: { builder: '@nrwl/linter:eslint', options: { lintFilePatterns: [ 'apps/customer-e2e/**/*.{js,ts}' ] } }
    }
  },
  carrier: {
    projectType: 'application',
      schematics: { '@nrwl/angular:component': { style: 'scss' } },
    root: 'apps/carrier',
      sourceRoot: 'apps/carrier/src',
      prefix: 'app',
      architect: {
      build: {
        builder: '@angular-devkit/build-angular:browser',
          options: {
          outputPath: 'dist/apps/carrier',
            index: 'apps/carrier/src/index.html',
            main: 'apps/carrier/src/main.ts',
            polyfills: 'apps/carrier/src/polyfills.ts',
            tsConfig: 'apps/carrier/tsconfig.app.json',
            aot: false,
            assets: [
            'apps/carrier/src/favicon.ico',
            'apps/carrier/src/assets',
            { glob: '**/*', input: 'node_modules/@jbhunt-ds/icons/dist/font', output: '/assets/fonts/jbh-icon' },
            { glob: '**/*', input: 'node_modules/lib-platform-services/src', output: '/assets' },
            'apps/carrier/src/manifest.webmanifest'
          ],
            styles: [
            { input: 'node_modules/@jbhunt-ds/icons/dist/font/jbh-icons.scss', bundleName: 'jbhIcons' },
            { input: 'node_modules/primeng/resources/primeng.min.css', bundleName: 'primengBase' },
            { input: 'apps/carrier/src/styles.scss', bundleName: 'globals' }
          ],
            scripts: []
        },
        configurations: {
          production: {
            fileReplacements: [ { replace: 'apps/carrier/src/environments/environment.ts', with: 'apps/carrier/src/environments/environment.prod.ts' } ],
              outputHashing: 'all',
              sourceMap: false,
              extractCss: true,
              namedChunks: false,
              aot: true,
              extractLicenses: true,
              vendorChunk: false,
              buildOptimizer: true,
              budgets: [ { type: 'initial', maximumWarning: '2mb', maximumError: '5mb' }, { type: 'anyComponentStyle', maximumWarning: '6kb', maximumError: '10kb' } ],
              serviceWorker: true,
              ngswConfigPath: 'apps/carrier/ngsw-config.json'
          }
        }
      },
      serve: { builder: '@angular-devkit/build-angular:dev-server', options: { browserTarget: 'carrier:build' }, configurations: { production: { browserTarget: 'carrier:build:production' } } },
      'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'carrier:build' } },
      lint: { builder: '@nrwl/linter:eslint', options: { lintFilePatterns: [ 'apps/carrier/src/**/*.ts', 'apps/carrier/src/**/*.html' ] } },
      test: {
        builder: '@angular-devkit/build-angular:karma',
          options: {
          main: 'apps/carrier/src/test.ts',
            tsConfig: 'apps/carrier/tsconfig.spec.json',
            karmaConfig: 'apps/carrier/karma.conf.js',
            polyfills: 'apps/carrier/src/polyfills.ts',
            styles: [],
            scripts: [],
            assets: [ 'apps/carrier/src/manifest.webmanifest' ]
        }
      }
    }
  },
  'carrier-e2e': {
    root: 'apps/carrier-e2e',
      sourceRoot: 'apps/carrier-e2e/src',
      projectType: 'application',
      architect: {
      e2e: {
        builder: '@nrwl/cypress:cypress',
          options: { cypressConfig: 'apps/carrier-e2e/cypress.json', tsConfig: 'apps/carrier-e2e/tsconfig.e2e.json', devServerTarget: 'carrier:serve' },
        configurations: { local: { devServerTarget: 'customer:serve' }, production: { devServerTarget: 'carrier:serve:production' } }
      },
      lint: { builder: '@nrwl/linter:eslint', options: { lintFilePatterns: [ 'apps/customer-e2e/**/*.{js,ts}' ] } }
    }
  },
  shared: {
    projectType: 'library',
      root: 'libs/shared',
      sourceRoot: 'libs/shared/src',
      prefix: 'app',
      architect: {
      lint: { builder: '@nrwl/linter:eslint', options: { lintFilePatterns: [ 'libs/shared/src/**/*.ts', 'libs/shared/src/**/*.html' ] } },
      test: { builder: '@angular-devkit/build-angular:karma', options: { main: 'libs/shared/src/test.ts', tsConfig: 'libs/shared/tsconfig.spec.json', karmaConfig: 'libs/shared/karma.conf.js' } }
    },
    schematics: { '@nrwl/angular:component': { styleext: 'scss' } }
  }
},
  cli: { defaultCollection: '@nrwl/angular' },
  schematics: {
    '@nrwl/angular': { application: { linter: 'eslint' }, library: { linter: 'eslint' }, 'storybook-configuration': { linter: 'eslint' } },
    '@nrwl/angular:application': { unitTestRunner: 'karma', e2eTestRunner: 'cypress' },
    '@nrwl/angular:library': { unitTestRunner: 'karma' },
    '@nrwl/angular:component': { style: 'scss' }
  },
  defaultProject: 'customer'
}
2021-06-01T19:17:30.164Z angular/cli config TypeError: n is not a function
at t._getWebpackConfigurations (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:16:20995)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:17:12496
at generateWebpackConfig (C:\Users\user\IdeaProjects\app_pricing_ui\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:62:22)
at async generateBrowserWebpackConfigFromContext (C:\Users\user\IdeaProjects\app_pricing_ui\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:137:20)
2021-06-01T19:17:30.165Z jest/config Detecting Jest.
2021-06-01T19:17:30.170Z jest/config Error: Module jest-cli is not found in 'C:\Users\user\IdeaProjects\app_pricing_ui'.
  at Object.<anonymous> (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:23385)
at n (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:7707)
at Object.next (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:7002)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:6911
at new Promise (<anonymous>)
at r (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:6705)
at Object.loadJest (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:29:21057)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:24576
at n (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:29120)
at Object.next (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28415)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28324
at new Promise (<anonymous>)
at s (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28118)
at n (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:24264)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:27795
at n (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:29120)
at Object.next (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28415)
at C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28324
at new Promise (<anonymous>)
at s (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:28118)
at r (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:18:27676)
at Config.<anonymous> (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:15:25704)
at n (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:15:19091)
at Object.next (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:15:18386)
at o (C:\Users\user\AppData\Local\JetBrains\IntelliJIdea2021.2\wallaby\wallaby\server.js:15:18135)
Failed to load configuration file: Automatic Angular CLI configuration error: n is not a function

We've also tried to automatically configure Wallaby.js for other frameworks
Automatic Jest configuration error: Module jest-cli is not found in '.'.
smcenlly commented 3 years ago

Thanks for providing the additional details. This has been fixed in the latest version of Wallaby, v1.0.1086.

sdrowe commented 3 years ago

Thanks for providing the additional details. This has been fixed in the latest version of Wallaby, v1.0.1086.

How do I get this? The latest version I see is 1.0.216?

smcenlly commented 3 years ago

Sorry for the confusion. Wallaby ships with two components:

  1. Editor extension (which has its own version, for IntelliJ Editors: Wallaby v1.0.216)
  2. Core runtime version (which is downloaded and installed automatically by your editor extension, v1.0.1086).

If your license has not expired, Wallaby will automatically download the updated core version for you. If it does not update automatically, you may force Wallaby to update immediately by closing all instances of your editor and then re-open your project and start Wallaby.

If your license has expired, you may request a trial license or else email us (hello@wallabyjs.com).