-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling config.util.setModuleDefaults(namespace, localOptions) a second time crashes #546
Comments
I also noticed that calling |
I have the same issue. Is there any work planned around this? Any workarounds? |
Leaving this open for someone to contribute. A failing test would be a good place to start. The current submodule support isn't adequate for my use cases, so I'm leaving this open for someone to fix if this mechanism is working for you. |
I am seeing the same thing after a call like this:
I get this exception:
Versions:
|
I was trying to create a repro case for the property masking bug a couple weeks ago, and I think I may have been running into this bug here instead. |
I'm submitting a ...
What is the current behavior?
Calling config.util.setModuleDefaults(namespace, localOptions) a second time with a different value for namespace causes this error:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem: Please see other information.
What is the expected behavior?
Calling a second time with a different value for a namespace will allow me to access the config items in that namespace by doing
config.get('namespace2.XXX')
Please tell us about your environment:
Other information
Here is a function I wrote that is intended to allow me to read an arbitrary
config
directory (say in another module or place on disk from the application's config directory) and put those config settings into a namespace inside the global config object.The text was updated successfully, but these errors were encountered: