Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Build Error

navink386520
Level 2
Level 2

I am creating local project , by following instructions in https://adobeio-codelabs-custom-events-adobedocs.project-helix.page/?src=/lessons/lesson4.html

However when i execute

>aio app build , am getting following error

 

"moduleIdentifier": "C:\\diMonitoring5\\diMonitoring5\\src\\dx-excshell-1\\actions\\slack\\index.js",
» "moduleName": "./src/dx-excshell-1/actions/slack/index.js",
» "loc": "1:14-32",
» "message": "Module not found: Error: Can't resolve 'request' in 'C:\\diMonitoring5\\diMonitoring5\\src\\dx-excshell-1\\actions\\slack'",
» "moduleId": 663,
» "moduleTrace": [],
» "details": "resolve 'request' in 'C:\\diMonitoring5\\diMonitoring5\\src\\dx-excshell-1\\actions\\slack'\n Parsed request is a module\n using descripti

1 Reply
duypnguyen
Employee
Employee

@navink386520 - I suspect you don't have the `request` module in your package.json file. Please try adding it, npm install, and rerun your app.

In the long term, we should migrate this code to use node-fetch instead.