mongoose在npm run build一直过不去 #1312
-
npm run dev 正常但是 npm run build以后
然后yarn add @types/mongodb -D (最新是@types/[email protected])
然后安装 yarn add mongodb (最新4.1.2) 也是一样
|
Beta Was this translation helpful? Give feedback.
Answered by
czy88840616
Oct 3, 2021
Replies: 2 comments 1 reply
-
跳过吧 在tsconfig.json中的compilerOptions中加入:“skipLibCheck”: true 即可 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xmsz
-
计划会出一个 @midwayjs/mongoose,但是由于不同 mongodb 的 driver 会对应不同的 mongoose 版本,所以 mongoose 的依赖还是会让用户来决定到底使用哪个版本,midway只是去包装成能快速接入的方式。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
跳过吧 在tsconfig.json中的compilerOptions中加入:“skipLibCheck”: true 即可