Remix Arc Sandbox - 处理程序不是函数错误

问题描述 投票:0回答:1

尝试通过以下命令在 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 沙箱时的问题。

javascript automatic-ref-counting remix
1个回答
0
投票

您修复了 Lambda 错误吗?我在本地也遇到了同样的问题。

© www.soinside.com 2019 - 2024. All rights reserved.