尝试通过以下命令在 Arc 沙箱中运行 Remix 应用程序:执行
node ./dev sandbox
后npx remix build
。
当在浏览器中访问时,它会在端口 3001 中启动一个沙箱,并抛出此错误:
Lambda error
Error: TypeError: handler is not a function
Lambda: @http any /*
: handler is not a function
Stack trace:
TypeError: handler is not a function, at run ([eval]:1:6752), at processTicksAndRejections (node:internal/process/task_queues:95:5), at main ([eval]:1:6967)
我尝试启动一个新的 Remix 应用程序,沙箱运行没有任何问题。
圆弧设置:
@app
remix-latest-7073
@http
/*
method any
src server
@static
@tables
user
pk *String
password
pk *String # userId
note
pk *String # userId
sk **String # noteId
尝试删除node_modules和
server
目录,然后在沙箱之前运行构建命令。
还尝试将 http 资源指出到其他文件夹,但它只是返回不同的错误。
我希望沙箱运行时不会出现任何问题,类似于在新安装的混音项目上运行 arc 沙箱时的问题。
您修复了 Lambda 错误吗?我在本地也遇到了同样的问题。