Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Error: Cannot find module 'next-aws-lambda' when using yarn 2 #56

Closed
rizrmd opened this issue Oct 15, 2020 · 6 comments
Closed

Error: Cannot find module 'next-aws-lambda' when using yarn 2 #56

rizrmd opened this issue Oct 15, 2020 · 6 comments

Comments

@rizrmd
Copy link

rizrmd commented Oct 15, 2020

"Cannot find module 'next-aws-lambda'\n" +
'Require stack:\n' +
'- C:\Users\Riz\Desktop\basey2\out_functions\next_api_hello\next_api_hello.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\lambda-local\build\lambdalocal.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\src\utils\serve-functions.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\src\commands\dev\index.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\@oclif\config\lib\plugin.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\@oclif\config\lib\config.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\@oclif\config\lib\index.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\@oclif\command\lib\command.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\node_modules\@oclif\command\lib\index.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\src\index.js\n' +
'- C:\Users\Riz\scoop\persist\nvm\nodejs\v14.10.1\node_modules\netlify-cli\bin\run',

@lindsaylevine
Copy link
Contributor

hey @rizkyramadhan, thanks for filing this! what command(s) are you running that lead you to seeing this local error?

@rizrmd
Copy link
Author

rizrmd commented Oct 16, 2020

netlify dev,

or just push to the repo and let netlify CD deploy my app

@rizrmd
Copy link
Author

rizrmd commented Oct 16, 2020

FYI, I'm on windows 10. But I think netlify environment is in linux., and this happens on both env.

@lindsaylevine
Copy link
Contributor

hmm ok. not sure what's going on without really seeing the context. are you able to create a repo that reproduces this issue?

@lindsaylevine
Copy link
Contributor

hey rizky! following up here since this has been open for a little while :) any update? otherwise, we'll close this issue due to inactivity.

@rizrmd rizrmd closed this as completed Nov 2, 2020
@rizrmd
Copy link
Author

rizrmd commented Nov 2, 2020

Sorry, closed this for now, I decided to host on my on server without serverless function

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants