Skip to content
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

根本跑不起来 #14

Open
xsddz opened this issue Oct 12, 2022 · 3 comments
Open

根本跑不起来 #14

xsddz opened this issue Oct 12, 2022 · 3 comments

Comments

@xsddz
Copy link

xsddz commented Oct 12, 2022

按照文档,执行到第1步。根本跑不起来。

$ npm run start
npm WARN config `_auth`, `_authToken`, `username` and `_password` must be scoped to a registry. see `npm help npmrc` for more information.

> [email protected] start
> npm run build:prod && cross-env NODE_ENV=fws node dist/index.js

npm WARN config `_auth`, `_authToken`, `username` and `_password` must be scoped to a registry. see `npm help npmrc` for more information.

> [email protected] build:prod
> tsc --project tsconfig.prod.json

src/middlewares/logger-middleware.ts:21:60 - error TS2322: Type 'unknown' is not assignable to type 'string | undefined'.
  Type 'unknown' is not assignable to type 'string'.

21     ctx.logAttr = { transactionId: generationId(PRE.TRAN), applicationId: params.applicationId || '' };
                                                              ~~~~~~~~~~~~~

  src/types/index-types.ts:19:5
    19     applicationId?: string;
           ~~~~~~~~~~~~~
    The expected type comes from property 'applicationId' which is declared here on type '{ id?: string | undefined; type?: string | undefined; method?: string | undefined; applicationId?: string | undefined; organizationId?: string | undefined; transactionId: string; }'


Found 1 error.
@drxiao1
Copy link
Member

drxiao1 commented Oct 13, 2022

@xsddz 已经处理好了,有空可以再尝试下。感谢。

@xsddz
Copy link
Author

xsddz commented Oct 13, 2022

@xsddz 已经处理好了,有空可以再尝试下。感谢。

重新按流程走一遍嘛?

@laosandegudai
Copy link

直接搞个环境镜像,搞来搞去都跑不动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants