headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

i18n path error #2069

Closed vyncent-t closed 4 months ago

vyncent-t commented 4 months ago

As of the current main this error will be displayed in the terminal when running the command npm run test from the frontend dir. After it runs it would return this error for i18n translations, It seems the issue has to do with the strings not being set correctly for the path.

image


Error: Command failed: npm run i18n
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:405:5)
    at validateString (node:internal/validators:162:11)
    at Object.join (node:path:1175:7)
    at file:///home/vtaylor/headlamp/frontend/src/i18n/i18next-parser.config.js:5:28
    at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
    at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24) {
  code: 'ERR_INVALID_ARG_TYPE'
}```
vyncent-t commented 4 months ago

Issue is fixed with node update