"Module not found" errors after upgrading to version 51 of the sdk

I suspect I'm in for a lot of headaches here. I'm upgrading from an old codebase - built upon the sdk version 14. I went with the the upgrade instructions for v51. The sdk installed without issue following the readme. I ran

./sdk init-native 

which ran without issue. Starting

./sdk debug

There is no issue until I connect to the service on localhost:9000/app - when I get over 90 errors of the type:

[21:41:39] webpack-dev-server: http://localhost:9000/app
[21:41:39] Finished 'webpack-server-run' after 1.09 s
[21:41:39] Finished 'debug' after 1.27 s
<i> [webpack-dev-middleware] wait until bundle finished: /app/
assets by path ../ 889 KiB
  assets by path ../font/*.ttf 827 KiB 5 assets
  assets by path ../img/*.svg 61.7 KiB
    asset ../img/logo-login--dark.svg 23.7 KiB [emitted] (auxiliary name: index)
    asset ../img/logo-login.svg 23.7 KiB [emitted] (auxiliary name: index)
    asset ../img/icon-touchid.svg 11.1 KiB [emitted] (auxiliary name: index)
    asset ../img/pattern-tiled.svg 2.5 KiB [emitted] (auxiliary name: index)
    asset ../img/icon-pipeline.svg 693 bytes [emitted] (auxiliary name: index)
assets by path *.js 36.5 MiB
  assets by status 36.4 MiB [big]
    asset index.js 31.4 MiB [emitted] [big] (name: index)
    asset heicworker.js 4.43 MiB [emitted] [big] (name: heicworker)
    asset entries_custom_js.js 586 KiB [emitted] [big]
  asset js_utils_performance_logger_js.js 68.6 KiB [emitted]
  asset js_utils_error-emulation_js.js 34.6 KiB [emitted]
orphan modules 259 KiB [orphan] 59 modules
runtime modules 56.7 KiB 29 modules
cacheable modules 12.8 MiB
  modules by path ./ 10 MiB 630 modules
  modules by path ../ 2.76 MiB
    modules by path ../node_modules/ 2.58 MiB 516 modules
    modules by path ../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/ 190 KiB 37 modules
  fs (ignored) 15 bytes [built] [code generated]
  path (ignored) 15 bytes [built] [code generated]
  crypto (ignored) 15 bytes [built] [code generated]
../node_modules/moment/locale/ sync ^\.\/.*$ 3.21 KiB [optional] [built] [code generated]
./js/ sync \.hbs$ 9.2 KiB [built] [code generated]
../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/ sync ^((?%21\/samples\/config\/).)*$ 3.01 KiB [built] [code generated]
external "Handlebars" 42 bytes [built] [code generated]

ERROR in ../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/actions/context-menu-actions.js 1:22-57
Module not found: Error: Can't resolve '%app.core%/customization' in '/home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/actions'
 @ ../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/ sync ^((?%21\/samples\/config\/).)*$ ./actions/context-menu-actions.js ./actions/context-menu-actions
 @ ./entries/custom.js 5:16-82
 @ ./entries/dynamic.js 16:14-42
 @ ./entries/index.js 17:0-39 19:0-14

ERROR in ../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/actions/other-actions-cstm.js 1:22-57
Module not found: Error: Can't resolve '%app.core%/customization' in '/home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/actions'
 @ ../../../../../../home/steve/GIT/KPMobile/mobile-sdk/KPMobile/KP_App/custom/ sync ^((?%21\/samples\/config\/).)*$ ./actions/other-actions-cstm.js ./actions/other-actions-cstm
 @ ./entries/custom.js 5:16-82
 @ ./entries/dynamic.js 16:14-42
 @ ./entries/index.js 17:0-39 19:0-14

Any thoughts on what I may need to do to the codebase, assuming it's changes in the sdk?

Thanks

Parents Reply Children
No Data