-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【提问】此 TS 项目该如何运行、部署? #2
Comments
这是一个 deno 项目,不是常规的 node 项目,它们的异同参考 deno 官网。 你可以使用 deno 本地开发,或者使用 deno deploy 的部署服务自行部署。 |
好叻,谢谢,我去看看, |
行了,刚刚找了个arm64的deno装上能跑了,哈哈 |
deno deploy部署上了,但绑定域名一直解析不通过,dns用的cloudflare。 |
按照 deno deploy 的自定义域名指南,加上需要的 DNS 解析,一会儿就好了吧,具体操作:
![]()
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大佬们别喷,主要确实不会,哈哈
使用ts-node main.ts直接运行报错如下:
/usr/local/lib/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
main.ts:1:29 - error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
1 import { Application } from './deps.ts'
~~~~~~~~~~~
main.ts:2:20 - error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
The text was updated successfully, but these errors were encountered: