-
Notifications
You must be signed in to change notification settings - Fork 4
utils environmentalize fails with item.replace is not a function #543
Comments
@KillerCodeMonkey Hi. Could you please paste your actual config object here, not the stringified one? |
@herschel666 good question :D. I am really new into that whole thing. our whole module.exports = {
languageTags: ['native-ads'],
languages: ['de', 'en'],
}; but sadly i do know where the config in untool comes from. So as a noob you have to guide me a little bit. maybe this an issue with |
@KillerCodeMonkey Hmm, that config you pasted obviously lacks the very properties, that are causing the error. Without knowing your codebase, I can't tell where those props are defined. Look for a custom Hops preset, that you are consuming in your main app. Besides, it would be helpful if you could at least confirm, that there's a piece in your final config object, that looks something like this: {
config: () => ({
prop: '[SOME_ENV_VAR]',
}),
} |
@herschel666 thanks for your patience like i said i am more a noob in the untool/xing world and i do not where the other parts of the config comes from. Here is the complete output of the config passed to the
in the repo we are using And the hopsconfig.js in our project is just
This is working when i do not upgrade any deps in our yarn.lock. But since one hops dependency updates newer untool versions are used and the problem occurs. Like i said, maybe it is a hopsconfig problem. Thanks again mate. |
nice, thanks man! |
Hi @herschel666, could you give us an ETA on when this is going to land in a |
I think we have a similar problem.
In our case the config type is
hops
.The untool version is 1.10.4.
Sadly on the config are two keys with functions on it and calling
item.replace
on it fails. So our whole project stops to work :(.The config passed to the
environmentalize
function.https://github.com/untool/untool/blob/v1.10.4/packages/core/lib/utils.js#L75
The text was updated successfully, but these errors were encountered: