twing icon indicating copy to clipboard operation
twing copied to clipboard

Error: Unable to add global "country" as the extensions have already been initialized.

Open ChandlerVS opened this issue 5 years ago • 2 comments

Can someone explain how these class of errors appear? I have absolutely no idea how to keep this form happening. It happens once every so often to someone random in production and I can't figure out why.

How are the extensions being initialized? How can I ensure globals are added before extension initialization? I can't find any documentation on this.

If I need to post code for this explanation, please let me know.

ChandlerVS avatar Oct 19 '20 00:10 ChandlerVS

@ChandlerVS Having the exact same problem, would love some feedback on this! Did you find a solution?

liamtarpey avatar Jan 14 '21 14:01 liamtarpey

@ChandlerVS Having the exact same problem, would love some feedback on this! Did you find a solution?

Unfortunately I did not have time to sit around and figure it out. I removed Twing from my project and used an engine that Express recommends.

ChandlerVS avatar Jan 14 '21 19:01 ChandlerVS

So, there is no more limit to the moment we add a global with Twing@6. I would like to avoid changing the behaviour of Twing@5 at that point, but if it is really important please comment and I'll find a way.

ericmorand avatar Nov 27 '23 19:11 ericmorand