我正在尝试主持一个通用的ssr应用程序,在vercel上使用nuxt 2构建。
这是,项目总规模约为6mb
但是,当我试图构建vercel时,它会出现这样的错误
Error: The Serverless Function "index" is 124.58mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size
错误的截图
在这里,我试图在AWS无服务器lambda上部署我的角度应用程序。但它让我犯了这个错误。我运行了命令serverless:deploy来部署它。但是端点显示了错误的{"message": "Internal server error"}。我做错什么了?我有没有漏掉任何文件什么的?它显示的是"server.app.use is not a function"。任何帮助都将不胜感激。下面显示的错误来自AWS上的lambda日志。我遵循了本教程
错误
> undefined ERROR Uncaught Exception {
我目前正在努力让一个带有SSR的Angular Universal应用程序在AWS Lambda上运行。 我安装了一个新的Angular应用程序 ng new my-angular-ssr-app 我将Angular Universal添加到我的Angualr应用程序中 ng add @nguniversal/express-engine --clientProject my-angular-ssr-app 我测试了我的应用程序与npm一起工作,并使用Postman进行了GET-Request (http://localhost:4000/)测试。 npm run build:ssr &am
我已经创建了一个角SSR应用程序,在那里安装了NgApexchartsModule模块,之后当我尝试运行以下命令时,我将面临以下问题:
command: ng run abc:serve-ssr
ReferenceError: window is not defined
at Object.ujAs (D:\EXPERIMENTAL\SSR\abc\dist\abc\server\main.js:230211:345871)
at __webpack_require__ (D:\EXPERIMENTAL\SSR\abc\dist\abc\server\main.js:20:
我一直在通过将曲线拟合到价格序列来运行R中的估计。我想通过在关键参数m和omega的最佳值上进行非常小的更改来评估曲线的适合性。为了做到这一点,我想看看残差平方和是如何在最优情况下变化的。我将残差函数定义如下:
# Define function for sum of squared residuals, to evaluate the fitness of parameters m and omega
residuals <- function(m, omega, tc) {
lm.result <- LPPL(rTicker, m, omega, tc)
return(
我正在尝试使用@nguniversal/express-engine,我已经安装并尝试运行它,但它在main.js文件中给出错误。
这就是我得到的错误
C:\Folder\ssr\dist\ssr\server\main.js:179450
})(window, function() {
^
ReferenceError: window is not defined
at Object.rdXg (C:\Folder\ssr\dist\ssr\server\main.js:179450:4)
at __webpack_require__ (C:\Folder\s
当我尝试使用以下方法对服务进行package时:
SLS_DEBUG=* $(npm bin)/serverless package
serverless-framework给了我一个错误:
Error --------------------------------------------------
EISDIR: illegal operation on a directory, read
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variabl
当我尝试在AWS上部署我的服务时。它显示了环境变量中的验证错误。但是我的所有变量的格式都是正确的,因为以前它工作得很好。
An error occurred: AuthenticateUserLambdaFunction - Resource handler returned message: "1 validation error detected: Value at 'environment.variables' failed to satisfy constraint: Map
keys must satisfy constraint: [Member must