booster
booster copied to clipboard
Your first Booster app in 10 minutes with Windows 10: lambda handle info path '\' makes crash, should be changed to '/'
Bug Report
Current Behavior
GraphQL test does not work because lambda handle info is: dist\index.boosterServeGraphQL
{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'dist\index'\nRequire stack:\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module 'dist\index'",
"Require stack:",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object.
Expected behavior
Handle info should have '/' instead to run correctly. I have checked and this fixing handle info does the fix.
Possible Solution
Modifying by hand solves the problem, but is not a good solution. The correct way should be to modify build generation for all platforms. I suppose that this behavior is caused by the Windows 10 OS
Environment
- Booster version: @boostercloud/cli/0.11.2 win32-x64 node-v14.15.4
- Node/npm version: Node v14.15.4/npm 7.5.3
- OS: Windows 10
Thanks for reporting it. As a workaround, you could use the Windows Subsystem for Linux to run Booster commands, you can find install instructions here: https://learn.microsoft.com/en-us/windows/wsl/install