Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uuid error: "uuid is not a function" #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guilhermelirio
Copy link

Change line 16 of AlexaResponse.js:
let uuid = require('uuid');

To:
let uuid = require('uuid/v4');

Change line 16 of AlexaResponse.js:
let uuid = require('uuid');

To:
let uuid = require('uuid/v4');
@shun-dgut
Copy link

After modifying the code, this problem occurred, can you help me see it?

{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'uuid/v4'",
"trace": [
"Runtime.ImportModuleError: Error: Cannot find module 'uuid/v4'",
" at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object. (/var/runtime/index.js:45:30)",
" at Module._compile (internal/modules/cjs/loader.js:778:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
" at Module.load (internal/modules/cjs/loader.js:653:32)",
" at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
" at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
" at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)",
" at startup (internal/bootstrap/node.js:283:19)"
]
}

@guilhermelirio
Copy link
Author

guilhermelirio commented Jul 21, 2020

Open your package.json and verify the version of uuid package. Change to "7.0.2" and test.

@shun-dgut
Copy link

Open your package.json and verify the version of uuid package. Change to "7.0.2" and test.
The problem has been solved. Thank you

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

Successfully merging this pull request may close these issues.

2 participants