IS there something amiss with the 21.2 Smart View SDK that anyone has come across?
I've downloaded from Content Server Smart View SDK 21.2 (opentext.com) the SDK and the csui-generator.
I am using Node 14.16.1 (under nvm), npm version 6.14.12.
I have installed the csui-generator, noting that this produces the "primordials undefined" error - see Smart UI install fails while trying to contact OpenText address — OpenText - Forums - which I have fixed using Appu Nair's comments.
The process I then follow is per below.
- Create a new folder for the new solution.
- Open command prompt to this folder and run yo csui-extension. Accept all defaults.
- Then run yo csui-extension:widget, again using defaults. When asked, overwrite the existing files.
- Run grunt. This produces an error when running the subgrunt:compile task -
>> TypeError: csuiComponent.getAllRequireJsPlugins is not a function
Warning: Task "default" not found. Use --force to continue.
Trying with grunt --force proceeds further, but doesn't produce final outputs (i.e. no out-release folder is generated).
Compare this with following:
- Create a new folder for the solution.
- Open command prompt to this folder and run yo csui-extension. Accept all defaults.
- In the /lib/src/ folder, there is a greet folder. Copy the contents of this folder and place in /src (under folder created in step 1).
- Run grunt. Error reported that module printf cannot be located/found - run npm install --save-dev printf.
- Run grunt. Error svgson not found - run npm install --save-dev svgson.
- Run grunt. Warning - Task "concurrent:finish" not found. Run npm install --save-dev grunt-concurrent.
- Run grunt. Build proceeds, though fails tests. HOWEVER, we now have out-release of built code.
This leads me to conclude that the csui-generator for 21.2 available from the OT KC is correct, producing build files that pre-date changes in the 21.2 SDK (i.e. move to "nuc"leus).
@Ferdinand Prantl - if you're watching - are you able to comment here? My goals are to A) ensure the SDK works and we can produce new solutions and B) convert existing solutions such that they can be built against the new SDK.
Regards,
David Henshaw