Hello,
I trying to get an out-module directory after running grunt in my-extension and deploy into oclipse IDE. However, it show no error and cannot complete the grunt. has anyone encounter the similar situation? It stop at loading bundles/.
I had the same problem after following the official documentation. Your Node.js version is probably too new. Install NodeJS 4 LTS for your platform as described in the readme.md of your development project. The old msi installation files are still available on the node.js web site.
Hi, Thanks for the reply. I did tried using nodejs 4.7.3 LTS. However, when i run npm link at the generator-csui-extension-16.0.6, it said that the npm version was outdated. When I run npm list -g --depth=0, it state that grunt@1.0.1 peer invalid.
Try installing the current LTS version of Node.js - Node.js 8.
The README in the SDK for CS Smart UI versions, which are in the maintenance mode, is not updated and the versions mentioned there may not work well today. An improvement for this situation has been discussed, but not implemented yet.
just tried to follow the readme in generator-csui-extension using node.js 8 LTS and grunt seems to still fail at the same step:
Running "languagepack:all" (languagepack) taskGetting bundle indexes...Bundle bundles/rcebox-all exposes 2 modules.Loading bundles/rcebox-all...
Any updates on this?
We use Node.js 8 in the Smart UI core team withthout problems. Do you get more output, when running "grunt --verbose"?
not a lot more. grunt remains in that state until I interupt with CTRL-C
Could you zip a small sample project showing this problem and attach it here to the forum, please? Thank you!
It appears to hang during the build of the English language pack template. You will need it at first, when you want to localize your product to multiple languages. As workaround for now, you can ignore the problem and at first develop the functionality in the primary language (English):
It should allow you continuing with your work and we will gain more time for the investigation of the problem with the langauge pack.
in addtion to the 'languagepack' I also hat to remove requirejsBundleCheck. Now grunt completes the tasks and I finally have an out-module directory
It is safe to skip the "requirejsBundleCheck" task in your case.
The "requirejsBundleCheck" task is important for modules, which produce multiple JavaScript bundles. They need to ensure, that one source JavaScript module gets bundled to just one output bundle. As long as you have only one bundle - rcebox-all - this problem will not occur.
I would still be curious about a sample project, which reproduces it :-)