Hello everyone, I have a quick question I have a n...
# suitecommerce
m
Hello everyone, I have a quick question I have a new extension created and I have only required 'SC.Configuration' but it's giving me an error "Script error for "SC.Configuration", needed by: EXTENSION NAME". If I change the 'SC.Configuration' for only 'Configuration', works fine.. but I can't access to Configuration.get() I have to do Configuration.Configuration.get() have anyone had this issue before? Thanks
s
I'm pretty sure we renamed it to just Configuration as part of its migration
m
that makes sense, but if I require 'Configuration' and do a console log of that object, it has a child inside called Configuration, so I need to do Configuration.Configuration each time that I need to call it
s
Well if you're talking about the frontend I would recommend using the Environment component of the extensibility API
👍🏻 1
As for the backend, I honestly don't remember but if that's what it's changed to then I wouldn't be surprised. Quite a few modules now return their 'primary' object as a property of themselves