cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Asset Manager Deployment to Mobile Services from SAP Web IDE - Build failed

BjörnB
Participant

Hello,

since today i have problems on "MDK Deployment to Mobile Service" from SAP Web IDE.

I am developping on SAP Asset Manager 2105.

Yesterday the Build & Deployment worked well.I have tested it from different SAP Web IDEs and different projects - nothing worked.

Have there been any infrastructure changes this night?


My log:

------------------------------

08:18:03 (DIBuild) MDK Bundler - creating bundle /tmp/webide.wWz.build/proj/.bundler/bundle.js
08:19:10 (DIBuild) >> MDK Bundler - failed to create bundle
08:19:12 (DIBuild) >> ... ...ugin/android'
>> @ ./build.definitions/application-index.js 604:101-208
>>
>> ERROR in ./build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios/ButtonStack.ts 4:13-53
>> Module not found: Error: Can't resolve 'tns-core-modules/ui/core/view' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios'
>> @ ./build.definitions/application-index.js 606:97-200
>>
>> ERROR in ./build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios/ButtonStack.ts 5:17-53
>> Module not found: Error: Can't resolve 'tns-core-modules/platform' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios'
>> @ ./build.definitions/application-index.js 606:97-200
>>
>> 7 errors have detailed information that is not shown.
>> Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
>>
>> webpack 5.38.1 compiled with 7 errors in 66974 ms
>> ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/application' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/platform' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/application' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/ui/core/view' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/android',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/platform' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/android',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/ui/core/view' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios',ModuleNotFoundError: Module not found: Error: Can't resolve 'tns-core-modules/platform' in '/tmp/webide.wWz.build/proj/.bundler/build.definitions/SAPAssetManager/Extensions/ButtonStackModule/controls/ButtonStackPlugin/ios'
>> undefined
>> Exited with code: 255.
>> Error executing child process: Error: Process exited with code 255.
Warning: Task "exec:bundlerExec" failed.� Use --force to continue.

Aborted due to warnings.

Build failed.
Please follow the relevant troubleshooting tips below:
ERROR: "Unable to find local grunt"
- Right-click the project folder, select "Clean npm Folder", and build again.
ERROR: "npm ERR! code EINTERGITY"
- Delete the "package-lock.json" file from the project and build again.
[INFO] Build finished in 210 seconds
08:19:12 (MDK Webpack) Failed to build project. Please check above error-message for details.

------------------------------
Regards
Björn

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

bjoern.burandt

Were you able to resolve your issue? If any of the below responses helped you, then please mark the helpful answer by accepting it OR post an answer so others might benefit from your findings and then close this discussion.

Regards,
Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
  1. It looks like you are attempting to deploy your pre-MDK 6.0 metadata for the MDK 6.0+ client and have not done the migration to address the needed changes for MDK 6.0.

If you are using MDK 5.x clients then please try the following:

  1. Right-click on the Application.app and Open in Code Editor
  2. If you have a line "_SchemaVersion": "6.0", please remove the line and Save the file
  3. Right0-click on the App folder and select "MDK Deploy to Mobile Services"
  4. On the Deploy to Mobile Services dialog make sure the For client 6.0 or later option is unchecked

This should eliminate the error during deploy. However, if you are deploying for MDK 6.0 clients then you will need to migrate your metadata to be compatible with this version.

BjörnB
Participant
0 Kudos

Hello Bill,

thank you for the fast response.

Did there change anything in the background since yesterday? Because i have never changed this checkbox.

Checked each project. It has been set everywhere to "true" and the deployment has been working until yesterday.

I have changed it to "false" and the line "_SchemaVersion": "6.0" dose not exist.

So the problem almost exists.

Regards

Björn

monokizsolt7
Participant
0 Kudos

We had the same issue today and unchecking "For client 6.0 or later" solved the deployment issue

sahil_dudeja1
Participant
0 Kudos

This solution solved issue for me as well.

rileycharkopwc
Explorer
0 Kudos

Hey Bill,

I'm having the exact same issue and your suggested fix (migrate) did not work for me. Any other suggestions? I have an OSS note open (848080)

sahil_dudeja1
Participant
0 Kudos

Hi Riley,

Try implementing note 3102559

Regards,

Sahil