You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i don't know if this lib is developed any more,but i would like to use it with webpack in browser. but i'm having a problem passing the configuration file to the Configuration or DIFactory factories as webpack complains that it cannot find module config.json. logically as it is not in node_modules
then i tried a little hack
configuration.data = configuration.parse(config); where config is js object - the config file. i cant pass in json as string because webpack needs to load and resolve everything
so i get this error Error: Found section services but there is no coresponding extension.
now i have no idea how to hack this further
do you have any ideas how to use di with webpack?
The text was updated successfully, but these errors were encountered:
I'm currently not using this package in any website so there was no reason for me to update it. Also it deserves some major refactoring (with configuration package as well) with some catch up with nette's di...
I looked at your problem and basically result from these lines of code in configuration package will need to be put in class property, which anyone can overwrite with custom configuration data.
DI package does not need any change for that to work (I hope), because you can already use custom Configuration instances. See test.
Do you want to create PR? I could do that probably at this weekend.
hi,
i don't know if this lib is developed any more,but i would like to use it with webpack in browser. but i'm having a problem passing the configuration file to the Configuration or DIFactory factories as webpack complains that it cannot find module config.json. logically as it is not in node_modules
then i tried a little hack
configuration.data = configuration.parse(config); where config is js object - the config file. i cant pass in json as string because webpack needs to load and resolve everything
so i get this error Error: Found section services but there is no coresponding extension.
now i have no idea how to hack this further
do you have any ideas how to use di with webpack?
The text was updated successfully, but these errors were encountered: