Closed nenne70 closed 1 week ago
Install @types/diff
and @types/lodash.merge
as devDependecies. For more details, check this issue and this discussion.
A solution is being discussed for this here
New GitHub action has been added thanks to @carlosallexandre , hopefully catches this in the future.
Thanks for raising @nenne70 , thanks for supporting @carlosallexandre
I tried this:
I tried to update to 2.7.13, I removed .eventcatalog-core node_modules package-lock.json
once deleted I did
npm install
This happened:
nenne@MacBook-Pro eventcatalogv2 % npm run build
Building EventCatalog...
14:40:18 [types] Generated 156ms 14:40:18 [check] Getting diagnostics for Astro files in /Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/.eventcatalog-core... src/utils/collections/file-diffs.ts:22:33 - error ts(7006): Parameter 'part' implicitly has an 'any' type.
22 const hasChanges = diff.some((part) => part.added || part.removed);
Result (116 files):
Error: Command failed: cross-env PROJECT_DIR='/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2' CATALOG_DIR='/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/.eventcatalog-core' npm run build at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at checkExecSyncError (node:child_process:890:11) at execSync (node:child_process:962:15) at _Command. (/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:3134:42)
at _Command.listener [as _actionHandler] (/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:1443:21)
at /Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:2233:24
at _Command._chainOrCall (/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:2141:16)
at _Command._parseCommand (/Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:2231:31)
at /Users/nenne/repos/piece42/terraform-project-p42-eventcatalog/eventcatalogv2/node_modules/@eventcatalog/core/bin/dist/eventcatalog.cjs:2042:31 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 65033,
stdout: null,
stderr: null
}
I expected this:
Expected to be able to build
Is there a workaround?
No response
Anything else?
No response
EventCatalog Version
2.7.13
Node.js Version
v21.7.2
Platform(s)
MacOS
Community Notes