-
-
Notifications
You must be signed in to change notification settings - Fork 307
Description
nodepress@3.0.0 start:dev /Applications/MAMP/htdocs/nodepress
NODE_ENV=development nodemon
[nodemon] 1.18.7
[nodemon] to restart at any time, enter rs
[nodemon] watching: /Applications/MAMP/htdocs/nodepress/src/**/*
[nodemon] starting ts-node -r tsconfig-paths/register src/main.ts
/Applications/MAMP/htdocs/nodepress/node_modules/ts-node/src/index.ts:261
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/modules/expansion/expansion.service.qiniu.ts(24,42): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
src/modules/expansion/expansion.service.qiniu.ts(25,47): error TS2322: Type 'unknown' is not assignable to type 'string'.
是需要配七牛的配置app.config.ts
export const QINIU = {
accessKey: argv.qn_accessKey || 'your access key',
secretKey: argv.qn_secretKey || 'your secret key',
bucket: argv.qn_bucket || 'nodepress',
origin: argv.qn_origin || 'http://nodepress.u.qiniudn.com',
uploadURL: argv.qn_uploadURL || 'http://up.qiniu.com/',
};