Is SC.Configuration no longer available? I just up...
# suitecommerce
g
Is SC.Configuration no longer available? I just updated to the latest dev tools in a 20.2 site and everything broke, so trying to figure it out. Also ProfileModel.getInstance() is not working. ProfileModel.getPromise(). What’s going on here? Adding the latest development tools has caused destruction. Did I miss something?
s
In some cases they will no longer be available, in others they will be blocked if they are in an extension
Configuration is available from the Environment component. Profile data is available from the UserProfile component.
g
That’s all well and good. But all I did was update the extension tools, Everything worked perfectly on the project yesterday.
s
Well that certainly sounds very odd
g
I’ve gone back to 2020.2.0 tools while I figure our what to do. Surely it can’t be by design to break all older extension. This is a really bad situation.
s
It could be because of extensibility API safe mode. Do you get specific error messages ?
Well, it should be breaking now but the plan is to eventually no longer support them. But yes I am a bit baffled about your particular situation. I feel like I need extra information before I can answer your specific problem
g
I can’t remember off the top of my head. But things like SC.Configuration not found. ProfileModel.getInstance() not found.
been trying to update some of them, but I was only in this project to change an icon.
s
Well, assuming extensibility API layer safe mode is turned off they shouldn't throw errors
So you can just turn it off for the timebeing
g
ok, I’ll give that a go. Also, the getUserProfile() function returns {addresses:[]} so that doesn’t work, no data in there. So updating to that feature is not an option.
It was already off. Turning it on give me loads of warnings, so that’s interesting. Just tried tools v2020.2.1 and no errors. Just 2020.2.2 breaks everything.