Closed velin-deity closed 4 months ago
Hello, I noticed that since version 1.11.0 our pipeline throws an error when running the co build command.
1.11.0
co build
From my investigation, the problem is with the new logic introduced in packages/core/src/lint-core/rules/duplicate-values.ts.
Coming to line 55 with a type that has not been defined in the initial values object throws Cannot read properties of undefined. In reality, any token whose type returns an empty or undefined set is automatically not a duplicate.
values
Cannot read properties of undefined
Good investigation! That’s a quick fix; will patch that right up
Hello, I noticed that since version
1.11.0
our pipeline throws an error when running theco build
command.From my investigation, the problem is with the new logic introduced in packages/core/src/lint-core/rules/duplicate-values.ts.
Coming to line 55 with a type that has not been defined in the initial
values
object throwsCannot read properties of undefined
. In reality, any token whose type returns an empty or undefined set is automatically not a duplicate.