You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning package.json: No license field
$ npm run copy && npm run launch
> survey-template@1.0.0 copy
> cp -rf ./src/ ./build/
> survey-template@1.0.0 launch
> npm run build && SERVER_ENV=local node ./build/index.js
> survey-template@1.0.0 build
> tsc
src/apps/security/db/mongo.ts:1:51 - error TS2307: Cannot find module 'mongodb' or its corresponding type declarations.
1 import { Collection, MongoClient, ObjectId } from 'mongodb'
~~~~~~~~~
src/apps/surveyManage/db/mongo.ts:1:51 - error TS2307: Cannot find module 'mongodb' or its corresponding type declarations.
1 import { Collection, MongoClient, ObjectId } from 'mongodb'
~~~~~~~~~
src/apps/surveyManage/index.ts:8:23 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
8 import * as Joi from 'joi'
~~~~~
src/apps/surveyManage/service/surveyService.ts:6:20 - error TS2307: Cannot find module 'lodash' or its corresponding type declarations.
6 import * as _ from "lodash";
~~~~~~~~
src/apps/surveyManage/service/surveyService.ts:7:25 - error TS2307: Cannot find module 'moment' or its corresponding type declarations.
7 import * as moment from "moment";
~~~~~~~~
src/apps/surveyManage/utils/index.ts:4:23 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
4 import * as Joi from 'joi'
~~~~~
src/apps/surveyPublish/db/mongo.ts:1:51 - error TS2307: Cannot find module 'mongodb' or its corresponding type declarations.
1 import { Collection, MongoClient, ObjectId } from 'mongodb'
~~~~~~~~~
src/apps/surveyPublish/index.ts:7:22 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
7 import * as Joi from 'joi'
~~~~~
src/apps/surveyPublish/service/surveySubmitService.ts:5:25 - error TS2307: Cannot find module 'moment' or its corresponding type declarations.
5 import * as moment from 'moment'
~~~~~~~~
src/apps/surveyPublish/utils/index.ts:3:23 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
3 import * as Joi from 'joi'
~~~~~
src/apps/user/db/mongo.ts:1:51 - error TS2307: Cannot find module 'mongodb' or its corresponding type declarations.
1 import { Collection, MongoClient, ObjectId } from 'mongodb'
~~~~~~~~~
src/apps/user/index.ts:3:22 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
3 import * as Joi from 'joi'
~~~~~
src/apps/user/service/userService.ts:4:8 - error TS2307: Cannot find module 'jsonwebtoken' or its corresponding type declarations.
4 } from 'jsonwebtoken';
~~~~~~~~~~~~~~
src/apps/user/utils/index.ts:3:23 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
3 import * as Joi from 'joi'
~~~~~
Found 14 errors in 13 files.
Errors Files
1 src/apps/security/db/mongo.ts:1
1 src/apps/surveyManage/db/mongo.ts:1
1 src/apps/surveyManage/index.ts:8
2 src/apps/surveyManage/service/surveyService.ts:6
1 src/apps/surveyManage/utils/index.ts:4
1 src/apps/surveyPublish/db/mongo.ts:1
1 src/apps/surveyPublish/index.ts:7
1 src/apps/surveyPublish/service/surveySubmitService.ts:5
1 src/apps/surveyPublish/utils/index.ts:3
1 src/apps/user/db/mongo.ts:1
1 src/apps/user/index.ts:3
1 src/apps/user/service/userService.ts:4
1 src/apps/user/utils/index.ts:3
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
操作系统:macOS 13.4 (22F66)
Node版本:v16.19.0
问题描述:
The text was updated successfully, but these errors were encountered: