Unable deploy the code from local to Adobe Runtime - Module not found | Community
Skip to main content
Mario248
Level 7
May 26, 2023
Question

Unable deploy the code from local to Adobe Runtime - Module not found

  • May 26, 2023
  • 1 reply
  • 912 views

I am trying deploy code from local to adobe runtime using "aio app run" but I get below error, Module not found: Error: Can't resolve '@adobe/aio-sdk & Module not found: Error: Can't resolve 'openwhisk'

 

 

 

 

root@mario # aio app run How you use /aio-cli provides us with important data that we can use to make our products better. Please read our guide for more information on the data we anonymously collect, and how we use it. https://developer.adobe.com/app-builder/docs/guides/telemetry/ ? Would you like to allow /aio-cli to collect anonymous usage data? Yes Telemetry is on! Nice, you are helping us improve /aio-cli If you would like to turn telemetry off, simply run `aio telemetry off` ℹ using remote actions ℹ building actions.. › Error: action build failed, webpack compilation errors: › [ › { › "moduleIdentifier": "/Users/mario/Documents/actions/send-action/index.js", › "moduleName": "./actions/send-action/index.js", › "loc": "1:17-42", › "message": "Module not found: Error: Can't resolve '@adobe/aio-sdk' in '/Users/mario/Documents/actions/send-action'", › "moduleId": 318, › "moduleTrace": [], › "details": "resolve '@adobe/aio-sdk' in '/Users/mario/Documents/actions/send-action'\n Parsed request is a module\n using description file: › /Users/mario/Documents/package.json (relative path: ./actions/send-action)\n resolve as module\n › /Users/mario/Documents/actions/send-action/node_modules doesn't exist or is not a directory\n › /Users/mario/Documents/actions/node_modules doesn't exist or is not a directory\n › /Users/mario/Documents/node_modules doesn't exist or is not a directory\n /Users/mario/Documents/node_modules doesn't exist or is › not a directory\n /Users/mario/Documents/node_modules doesn't exist or is not a directory\n /Users/mario/Documents/Codebase/node_modules doesn't exist or is not a directory\n › /Users/mario/Documents/node_modules doesn't exist or is not a directory\n /Users/mario/node_modules doesn't exist or is not a directory\n /Users/node_modules doesn't exist or is not a directory\n /node_modules doesn't exist or is › not a directory", › "stack": "ModuleNotFoundError: Module not found: Error: Can't resolve '@adobe/aio-sdk' in '/Users/mario/Documents/actions/send-action'\n at › /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/Compilation.js:2022:28\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:817:13\n at eval (eval at create › (/usr/local/lib/node_modules/@adobe/aio-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:275:22\n at eval (eval at create › (/usr/local/lib/node_modules/@adobe/aio-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:448:22\n at › /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:118:11\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:689:25\n at › /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:893:8\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:1013:5\n at › /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/neo-async/async.js:6883:13\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/webpack/lib/NormalModuleFactory.js:996:45\n at finishWithoutResolve › (/usr/local/lib/node_modules/@adobe/aio-cli/node_modules/enhanced-resolve/lib/Resolver.js:372:11)\n at /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/enhanced-resolve/lib/Resolver.js:461:15\n at › /usr/local/lib/node_modules/@adobe/aio-cli/node_modules/enhanced-resolve/lib/Resolver.js:519:5\n at eval (eval at create (/usr/local/lib/node_modules/@adobe/aio-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)" › }

 

 

Note - I am using Mac. Npm version - 9.6.7 & CLI version - 9.3.0
Can anyone help me to resolve this issue?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

sarahxxu
Adobe Employee
Adobe Employee
June 1, 2023

Could you try `aio info` and `aio app build` and share the output?