Closed vladyn closed 1 week ago
Thanks for providing your diagnostic report.
We can see from your configuration that you have two projects in your workspace pointing to the same folder (essentially making it one project). We had not encountered configurations like this before.
To fix your problem, you will need to download the latest version of Wallaby core, v1.0.1572
and configure Wallaby to exclude one of the projects. To exclude one of the projects, please add the following to your package.json
:
{
...
"wallaby": {
"angular-cli": {
"excludedProjects": ["learning-hub-serve"]
}
},
...
}
If you do not wish to modify your package.json
, you can create a Wallaby Configuration file instead (note: you will need to tell VS Code to start using the configuration file in this case).
Hello @smcenlly, Thank you for the helpful advice. I have two projects in the angular.json, but this is due to the specifics of the requirement. One is for the local service, and the other is for exporting Angular Elements. This is a custom component to be used along with other frameworks. I think the one that needs to be excluded is the other one - "learning-hub".
However, adding this exclusion to the package.json I know have
[Error] Automatic Angular CLI configuration error: A project for '<rootDir>' directory cannot be detected.
[Error]
[Error] We've also tried to automatically configure Wallaby.js for other frameworks.
[Error] Automatic Jest configuration error: Module jest-cli is not found in '<rootDir>'.
[Error] Automatic Vitest configuration error: Vitest dependency not found.
Where have you placed the setting? C:/Matrix3/src/Presentation/learning-plugin/package.json
?
Yes, it's there
Are you opening C:/Matrix3/src/Presentation/learning-plugin
in VS Code?
yes, the scope of this project goes like this: It's open in VS Code as a folder, part of monorepo
Could you please share the Diagnostic Report for the error?
@vladyn - are you still having the problem? Could you please share the Diagnostic Report for the error?
Could you please share the Diagnostic Report for the error? I'm sorry for this super late reply
{
editorVersion: '1.91.0',
pluginVersion: '1.0.379',
editorType: 'VSCode',
osVersion: 'win32 10.0.19045',
nodeVersion: 'v21.7.3',
coreVersion: '1.0.1576',
checksum: 'NDNkODdiZTRjMGRhY2VkMTE4MzhhMTYzMDM3ZTkzOTMsMTc0NjY2MjQwMDAwMCww',
config: { tests: [], files: [] },
fs: { numberOfFiles: 0 },
debug: [
'2024-07-10T13:31:26.135Z project waiting for initial run signal\n',
'2024-07-10T13:31:26.146Z model Initialization Completed: 601ms\n',
'2024-07-10T13:31:26.151Z config Attempting automatic configuration for angular\n',
'2024-07-10T13:31:26.157Z angular/cli config Detected Angular CLI.\n',
'2024-07-10T13:31:26.163Z angular/cli config Angular currentDirPath: "C:\\Matrix3\\src\\Presentation\\learning-plugin\\src", workspaceDirPath: "C:\\Matrix3\\src\\Presentation\\learning-plugin"\n',
"2024-07-10T13:31:26.163Z angular/cli config Error: A project for 'C:\\Matrix3\\src\\Presentation\\learning-plugin\\src' directory cannot be detected.\n" +
' at t.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:144:20656)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:13086)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async Config.load (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12911)\n' +
' at async Project.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:484:2644)\n',
'2024-07-10T13:31:26.166Z angular/cli config Angular.json: \n' +
' {\n' +
" '$schema': './node_modules/@angular/cli/lib/config/schema.json',\n" +
' version: 1,\n' +
" newProjectRoot: 'projects',\n" +
' projects: {\n' +
" 'learning-hub-serve': {\n" +
" projectType: 'application',\n" +
' schematics: {},\n' +
" root: '',\n" +
" sourceRoot: 'src',\n" +
" prefix: 'app',\n" +
' architect: {\n' +
' build: {\n' +
" builder: '@angular-devkit/build-angular:application',\n" +
' options: {\n' +
" outputPath: 'dist/learning-hub-serve',\n" +
" index: 'src/index.html',\n" +
" browser: 'src/main.ts',\n" +
' polyfills: [],\n' +
" tsConfig: 'tsconfig.app.json',\n" +
" assets: [ 'src/favicon.ico', 'src/assets' ],\n" +
" styles: [ 'src/reset.css', 'src/styles.css', 'node_modules/@videogular/ngx-videogular/fonts/videogular.css' ],\n" +
' scripts: []\n' +
' },\n' +
' configurations: {\n' +
" production: { budgets: [ { type: 'initial', maximumWarning: '500kb', maximumError: '1mb' }, { type: 'anyComponentStyle', maximumWarning: '2kb', maximumError: '4kb' } ], outputHashing: 'all' },\n" +
' development: { optimization: false, extractLicenses: false, sourceMap: true }\n' +
' },\n' +
" defaultConfiguration: 'production'\n" +
' },\n' +
' serve: {\n' +
" builder: '@angular-devkit/build-angular:dev-server',\n" +
" configurations: { production: { buildTarget: 'learning-hub-serve:build:production' }, development: { buildTarget: 'learning-hub-serve:build:development' } },\n" +
" defaultConfiguration: 'development'\n" +
' },\n' +
" 'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { buildTarget: 'learning-hub-serve:build' } },\n" +
' test: {\n' +
" builder: '@angular-devkit/build-angular:karma',\n" +
" options: { polyfills: [ 'zone.js', 'zone.js/testing' ], tsConfig: 'tsconfig.spec.json', assets: [ 'src/favicon.ico', 'src/assets' ], scripts: [] }\n" +
' }\n' +
' }\n' +
' },\n' +
" 'learning-hub': {\n" +
" projectType: 'application',\n" +
' schematics: {},\n' +
" root: '',\n" +
" sourceRoot: 'src',\n" +
" prefix: 'app',\n" +
' architect: {\n' +
' build: {\n' +
" builder: 'ngx-build-plus:build',\n" +
' options: {\n' +
" outputPath: 'dist/learning-hub',\n" +
" index: '',\n" +
" main: 'src/main.element.ts',\n" +
' singleBundle: true,\n' +
" tsConfig: 'tsconfig.element.json',\n" +
" assets: [ 'src/assets/data', 'src/assets/images' ],\n" +
" styles: [ 'src/styles.css', 'node_modules/@videogular/ngx-videogular/fonts/videogular.css' ]\n" +
' },\n' +
' configurations: {\n' +
' production: {\n' +
" budgets: [ { type: 'initial', maximumWarning: '500kb', maximumError: '1mb' }, { type: 'anyComponentStyle', maximumWarning: '2kb', maximumError: '4kb' } ],\n" +
" outputHashing: 'none'\n" +
' },\n' +
' development: { optimization: false, extractLicenses: false, sourceMap: true }\n' +
' },\n' +
" defaultConfiguration: 'production'\n" +
' },\n' +
' serve: {\n' +
" builder: '@angular-devkit/build-angular:dev-server',\n" +
" configurations: { production: { buildTarget: 'learning-hub:build:production' }, development: { buildTarget: 'learning-hub:build:development' } },\n" +
" defaultConfiguration: 'development'\n" +
' },\n' +
" 'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { buildTarget: 'learning-hub:build' } },\n" +
' test: {\n' +
" builder: '@angular-devkit/build-angular:karma',\n" +
" options: { polyfills: [ 'zone.js', 'zone.js/testing' ], tsConfig: 'tsconfig.spec.json', assets: [ 'src/favicon.ico', 'src/assets' ], scripts: [] }\n" +
' }\n' +
' }\n' +
' }\n' +
' },\n' +
" cli: { analytics: '34b1b886-0aa8-4cf7-93ee-400756639607' }\n" +
'}\n',
"2024-07-10T13:31:26.167Z angular/cli config Error: A project for 'C:\\Matrix3\\src\\Presentation\\learning-plugin\\src' directory cannot be detected.\n" +
' at t.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:144:20656)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:13086)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async Config.load (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12911)\n' +
' at async Project.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:484:2644)\n',
'2024-07-10T13:31:26.167Z config Finished attempting automatic configuration for angular (16ms)\n',
'2024-07-10T13:31:26.167Z config Attempting automatic configuration for jest\n',
"2024-07-10T13:31:26.170Z jest/config Error: Module jest-cli is not found in 'C:\\Matrix3\\src\\Presentation\\learning-plugin\\src'.\n" +
' at Object.loadJest (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:497:1080)\n' +
' at i (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:184:24825)\n' +
' at s.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:184:28164)\n' +
' at automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:13094)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async Config.load (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12911)\n' +
' at async Project.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:484:2644)\n',
'2024-07-10T13:31:26.170Z config Finished attempting automatic configuration for jest (3ms)\n',
'2024-07-10T13:31:26.170Z config Attempting automatic configuration for vitest\n',
'2024-07-10T13:31:26.172Z vitest/config Error: Vitest dependency not found.\n' +
' at s.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:185:3435)\n' +
' at automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:13094)\n' +
' at async automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12971)\n' +
' at async Config.load (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12911)\n' +
' at async Project.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:484:2644)\n',
'2024-07-10T13:31:26.172Z config Finished attempting automatic configuration for vitest (2ms)\n',
'2024-07-10T13:31:26.173Z config Attempting automatic configuration for node:test\n',
'2024-07-10T13:31:26.173Z vitest/config Error: Wallaby node:test integration requires Node.js 22.3.0 or higher.\n' +
' at s.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:185:596)\n' +
' at automaticConfigurationProviders.reduce.Promise.resolve.success (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:13094)\n' +
' at async Config.load (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:132:12911)\n' +
' at async Project.configure (c:\\Users\\vladimirv\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.379\\wallaby4fd471\\server.js:484:2644)\n',
'2024-07-10T13:31:26.173Z config Finished attempting automatic configuration for node:test (0ms)\n',
"2024-07-10T13:31:26.174Z project Failed to load configuration file: Automatic Angular CLI configuration error: A project for '<rootDir>' directory cannot be detected.\r\n" +
'\r\n' +
"We've also tried to automatically configure Wallaby.js for other frameworks.\r\n" +
"Automatic Jest configuration error: Module jest-cli is not found in '<rootDir>'.\r\n" +
'Automatic Vitest configuration error: Vitest dependency not found.\r\n' +
'Automatic node:test configuration error: Wallaby node:test integration requires Node.js 22.3.0 or higher.\n'
]
}
this is the output for the command "Wallaby start", but I'm getting same error on "Wallaby start on the closest mono-repo"
Could you please open C:\Matrix3\src\Presentation\learning-plugin
in VS Code (code "C:\Matrix3\src\Presentation\learning-plugin"
), execute Wallaby.js: Start
command and see if it works?
Could you please open
C:\Matrix3\src\Presentation\learning-plugin
in VS Code (code "C:\Matrix3\src\Presentation\learning-plugin"
), executeWallaby.js: Start
command and see if it works?
Actually that's the way I'm doing it. I have all the front-ends opened in a separate VS code windows.
I'm sorry, My bad - it is working now. I thank you for the accurate support! I'm closing this.
Issue description or question
hello everyone, Has anyone already hit this issue? I have this as an output and inline Wallaby shows all the tests in red, but in the chrome launched from Karma everything is OK -![image](https://github.com/wallabyjs/public/assets/107272/e4362df9-5e32-4b71-b38e-470ee8cc6f0e)
p.s. Any alternative automatic configuration is not giving any positive results.
Wallaby diagnostics report