v4.21 | User Feature not registering "user" State - spartacus-storefront

After installing the user feature via ng add #spartacus/user, Spartacus throws an error opening the address book:
The state in the selector is undefined because Spartacus does not register the user state.
I installed the checkout, ASM and organization features and for those the state is correctly appearing.
I followed the migration process from v3 to v4.
Any tips on how to proceed?
Thank you.

I was able to fix it by importing UserTransitional_4_2_Module which registers the state.
The documentation doesn't mention it so I bet it's not the optimal way but it's a workaround for now.

Related

reSolve and React Native integration

Is there any working example available involving reSolve in React Native?
Suggestions of comparable solutions (running without any back-end connectivity in place) either in React Native or Flutter are also most appreciated.
GitHub contains an example in the reimagined/react-native-example repository but unfortunately it isn't working. It seems the current version is pretty outdated.
Referring to that repository, the command yarn create resolve-app -e shopping-list-advanced shopping-list-advanced results in the following error message.
Error: No such example, shopping-list-advanced. The following examples are available
So you are unable to download the sample code since it does not appear to exist.
So I tried downloading and inflating the ZIP manually. Afterwards I ran yarn install (which takes a while and reports quite a lot of warnings). Next, I used the command yarn start:native. This doesn't work either and results in the following error message.
ERROR: Node.js version 16.13.2 is no longer supported.expo-cli supports following Node.js versions: >=10.13.0 <11.0.0 (Active LTS) >=12.0.0 <13.0.0 (Active LTS) >=13.0.0 <14.0.0 (Current Release)
In an attempt to solve the problem, I updated the expo-cli version in the native\package.json file to 5.0.3. Running yarn install and yarn start:native again results in a new error message being thrown error.
Invalid regular expression:
/(ui[\]node_modules[\]react-native[\].|ui[\]node_modules[\]expo[\].|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/:
Range out of order in character class.
This doesn't seem to go anywhere... In other words, I am a bit stuck here since I don't know what this message actually means.
Thank you for your feedback.
The team decided to extract the React Native example to a separate repository and postpone its maintenance to keep focused on more important tasks like polishing the server-side.
As you mentioned, the example is outdated, there are many changes in the client configuration since then. In the future, we may work on some guide on how to use reSolve in React Native and other frameworks.
In the meantime, you can try to add reSolve in your ReactNative app using our docs.
We provide several client libraries that can be helpful:
https://reimagined.github.io/resolve/docs/api/client/resolve-client/
https://reimagined.github.io/resolve/docs/api/client/resolve-react-hooks/
https://reimagined.github.io/resolve/docs/api/client/resolve-redux/
Feel free to contact us through Github in case of any difficulties, we'll be glad to help you.

VSF Unable to get integration template from git repository

I want to set up a new vue storefront project and I've got this error. I don't know why this is happening, can someone help out in this situation?
command: npx #vue-storefront/cli init
? What's your project name? smso
? Choose integration Commercetools
ERROR VSF Unable to get integration template from git repository
Did you connect your frontend application with a commercetools project yet?
You can register for a free trial here: https://commercetools.com/free-trial
And the following documentation describes how to create a project:
https://docs.commercetools.com/merchant-center/projects#create-a-project
So basically just register with your Merchant Center user and then click your initials in the upper right hand corner to create an organisation, a team as well as a project.
You might be running the command vsf init <project_name> in the wrong directory. It happened to me when I was following along this URL. Compare the below two print screens:
The error I got:
The right way to do it:
The commercetools integration is an enterprise solution, so the one in the CLI is a mockup just for knowledge sharing on how to build integrations.
You can check our integrations at https://docs.vuestorefront.io/v2/integrations/

GoogleMLKit/TextRecognition examples

I have been using Firebase/MLVision, Firebase/MLVisionTextModel for ios but due to recent migration, I need to upgrade my application. Do we have some links on the forum for reference?
I am using the below method to recognize the text currently - nsFirebase.mlkit.textrecognition.recognizeTextOnDevice so I think that with the upgrade, I will need to change method call too? If yes, where can I find some documentation.
Please advice.
Thanks
Jyoti
The migration guide for moving your app from Firebase ML to the new standalone ML Kit SDK can be found here: Overview, Android-specific instructions, iOS-specific instructions.

best structure for a customized virto commerce

Any suggestions of how to structure my solutions when developing custom Modules and frontend?
I.e. Should I just clone the repoy and add my modules and change web.config with transform files directly in the repo. Will a future pull working well then? any ideas for simple developing and simple upgrade?
Or is it wrong aproach. Should i use azure deploy script/ slot settings and call virto api to add virto modules...
ok i saw thar virto has updated its documentation
http://docs.virtocommerce.com/display/vc2devguide/Developing+a+custom+solution

Appcelerator Titanium Module - Verification issue, unlicensed module(s)

I had found a module in the appcelerator marketplace to allow for the rotate gesture called gesture recogniser but unfortunately it's now been removed when i went to purchase but it looks like the developer has also released the module as a 'skeleton' version on github here:
https://github.com/atsusy/Gesture-Recognizer
Now i followed the instructions on the readme file and built the project which created the module for me, when putting this into an app though i get the following error message and red screen:
Verification issue
Unlicensed module(s) detected.
You must be a subscriber to use one or more of the modules included with this project
Is there something i have missed to get this and how to i go about resolving the issue? Sorry i have no clue when it comes to github and modules so apologies if i am trying to use this in my app when i shouldn't but if anyone can help explain how and if i am allowed to get this working?
p.s the original link for the marketplace link that is now not found is: https://marketplace.appcelerator.com/http-status/?1894758329
You need to follow steps as follows:
Open Terminal and run “uuidgen”
Copy the code you see on the terminal
Open tiapp.xml, replace what’s in the “guid” tag with the the code you copied.
In Titanium Studio, do Project –> Clean
Run
Concept is to change GUID of module which is mentioned in manifest.
If you have the source code, just go the the manifest file, change the guid in the manifest to a new one, and build the module again. Probably better to increase the version and include it in your project again. Clean and build and it will work.
I guess the Titanium studio checks if you have licence for the modules you use. In case a module is on the marketplace with the same guid and you have no licence for that, it triggers it as unlicensed module.