-
参考官方手册内容,在vercel上面部署waline,结果部署过程中是没有问题,但无法正常访问,查看错误日志如下: Error: Cannot find module '/var/task/node_modules/sqlite3/lib/binding/node-v83-linux-x64/node_sqlite3.node'
Require stack:
- /var/task/node_modules/sqlite3/lib/sqlite3-binding.js
- /var/task/node_modules/sqlite3/lib/sqlite3.js
- /var/task/node_modules/think-model-sqlite/lib/socket.js
- /var/task/node_modules/think-model-sqlite/lib/query.js
- /var/task/node_modules/think-model-sqlite/index.js
- /var/task/node_modules/@waline/vercel/src/config/adapter.js
- /var/task/node_modules/think-loader/loader/config.js
- /var/task/node_modules/think-loader/index.js
- /var/task/node_modules/thinkjs/lib/loader.js
- /var/task/node_modules/thinkjs/lib/application.js
- /var/task/node_modules/@waline/vercel/index.js
- /var/task/index.js
- /var/task/___vc_launcher.js
- /var/runtime/UserFunction.js
- /var/runtime/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/var/task/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/task/node_modules/sqlite3/lib/sqlite3-binding.js',
'/var/task/node_modules/sqlite3/lib/sqlite3.js',
'/var/task/node_modules/think-model-sqlite/lib/socket.js',
'/var/task/node_modules/think-model-sqlite/lib/query.js',
'/var/task/node_modules/think-model-sqlite/index.js',
'/var/task/node_modules/@waline/vercel/src/config/adapter.js',
'/var/task/node_modules/think-loader/loader/config.js',
'/var/task/node_modules/think-loader/index.js',
'/var/task/node_modules/thinkjs/lib/loader.js',
'/var/task/node_modules/thinkjs/lib/application.js',
'/var/task/node_modules/@waline/vercel/index.js',
'/var/task/index.js',
'/var/task/___vc_launcher.js',
'/var/runtime/UserFunction.js',
'/var/runtime/index.js'
]
}
2021-03-23T08:58:30.925Z undefined ERROR TypeError: serverURL option is required for apps from CN region
at Object.init (/var/task/node_modules/leancloud-storage/dist/node/init.js:99:13)
at Object.<anonymous> (/var/task/node_modules/@waline/vercel/src/service/storage/leancloud.js:7:6)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at exports.interopRequire (/var/task/node_modules/think-loader/loader/util.js:14:13)
at /var/task/node_modules/think-loader/loader/common.js:16:26
RequestId: 60a701d9-6c3a-463c-a5ff-6e3e5cc621cb Error: Runtime exited with error: exit status 1
Runtime.ExitError 这个情况有人遇到过吗? |
Beta Was this translation helpful? Give feedback.
Answered by
lizheming
Mar 23, 2021
Replies: 1 comment 2 replies
-
你如果是用的 LeanCloud 国内版话还需要配一个 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lizheming
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你如果是用的 LeanCloud 国内版话还需要配一个
LEAN_SERVER
环境变量 https://waline.js.org/server/basic.html#%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE