Closed Kuechlin closed 3 years ago
@Kuechlin This is already fixed in next
and released very soon 😄
@christianalfoni Ok nice, thank you 👍.
Should I close this issue or will you close it when next
is released?
This is the fist issue i created 😃
You can close it 😄
If you want to test it you can install overmind with the @next
tag.
npm install overmind@next overmind-react@next
(or whatever view library you using)
I have found a bug in overmind/config merge.ts
Steps to reproduce
What is expected?
a config should be created
What is actually happening?
Workaround
this workaround works for me
How can this be fixed?
i have looked into the source code and i think i found the bug in overmind/packages/node_modules/overmind/src/config/merge.ts line 12
copy(target[key] || {}, source[key])
is throwing the error because the null check is missing the case where target is undefinedso to fix it i would suggest to implement it something like this: