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
[error] .//fs-extra/lib/empty/index.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/fs-extra/lib/empty
@ .//fs-extra/lib/empty/index.js 4:11-24
[error] .//nodemailer/lib/mailer/index.js
Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/mailer
@ .//nodemailer/lib/mailer/index.js 13:12-26
[error] .//nodemailer/lib/mailer/index.js
Module not found: Error: Cannot resolve module 'dns' in /app/node_modules/nodemailer/lib/mailer
@ .//nodemailer/lib/mailer/index.js 14:12-26
[error] .//nodemailer/lib/shared/index.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/shared
@ .//nodemailer/lib/shared/index.js 5:11-24
[error] .//nodemailer/lib/sendmail-transport/index.js
Module not found: Error: Cannot resolve module 'child_process' in /app/node_modules/nodemailer/lib/sendmail-transport
@ .//nodemailer/lib/sendmail-transport/index.js 3:14-38
[error] .//nodemailer/lib/smtp-connection/http-proxy-client.js
Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/smtp-connection
@ .//nodemailer/lib/smtp-connection/http-proxy-client.js 7:12-26
[error] .//nodemailer/lib/smtp-connection/index.js
Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/smtp-connection
@ .//nodemailer/lib/smtp-connection/index.js 5:12-26
[error] .//nodemailer/lib/smtp-connection/http-proxy-client.js
Module not found: Error: Cannot resolve module 'tls' in /app/node_modules/nodemailer/lib/smtp-connection
@ .//nodemailer/lib/smtp-connection/http-proxy-client.js 8:12-26
[error] .//nodemailer/lib/smtp-connection/index.js
Module not found: Error: Cannot resolve module 'tls' in /app/node_modules/nodemailer/lib/smtp-connection
@ .//nodemailer/lib/smtp-connection/index.js 6:12-26
[error] .//nodemailer/lib/dkim/index.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/dkim
@ .//nodemailer/lib/dkim/index.js 10:11-24
[error] .//graceful-fs/graceful-fs.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/graceful-fs
@ .//graceful-fs/graceful-fs.js 1:9-22
[error] .//nodemailer/lib/mime-node/index.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/mime-node
@ .//nodemailer/lib/mime-node/index.js 7:11-24
[error] .//jsonfile/index.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/jsonfile
@ .//jsonfile/index.js 5:8-21
[error] .//graceful-fs/fs.js
Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/graceful-fs
@ .//graceful-fs/fs.js 3:9-22
[error] index@abd3c817648fe96378b8.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [../~/fs-extra/lib/util/assign.js:5,0]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yapi-vendor@1.11.0 build-client: NODE_ENV=production ykit pack -m
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yapi-vendor@1.11.0 build-client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Activity
owen-kuai commentedon Feb 15, 2023
请问后续有解决办法嘛,我目前也遇到了这个问题
[error] ./
/fs-extra/lib/empty/index.js/fs-extra/lib/empty/index.js 4:11-24Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/fs-extra/lib/empty
@ ./
[error] ./
/nodemailer/lib/mailer/index.js/nodemailer/lib/mailer/index.js 13:12-26Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/mailer
@ ./
[error] ./
/nodemailer/lib/mailer/index.js/nodemailer/lib/mailer/index.js 14:12-26Module not found: Error: Cannot resolve module 'dns' in /app/node_modules/nodemailer/lib/mailer
@ ./
[error] ./
/nodemailer/lib/shared/index.js/nodemailer/lib/shared/index.js 5:11-24Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/shared
@ ./
[error] ./
/nodemailer/lib/sendmail-transport/index.js/nodemailer/lib/sendmail-transport/index.js 3:14-38Module not found: Error: Cannot resolve module 'child_process' in /app/node_modules/nodemailer/lib/sendmail-transport
@ ./
[error] ./
/nodemailer/lib/smtp-connection/http-proxy-client.js/nodemailer/lib/smtp-connection/http-proxy-client.js 7:12-26Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/smtp-connection
@ ./
[error] ./
/nodemailer/lib/smtp-connection/index.js/nodemailer/lib/smtp-connection/index.js 5:12-26Module not found: Error: Cannot resolve module 'net' in /app/node_modules/nodemailer/lib/smtp-connection
@ ./
[error] ./
/nodemailer/lib/smtp-connection/http-proxy-client.js/nodemailer/lib/smtp-connection/http-proxy-client.js 8:12-26Module not found: Error: Cannot resolve module 'tls' in /app/node_modules/nodemailer/lib/smtp-connection
@ ./
[error] ./
/nodemailer/lib/smtp-connection/index.js/nodemailer/lib/smtp-connection/index.js 6:12-26Module not found: Error: Cannot resolve module 'tls' in /app/node_modules/nodemailer/lib/smtp-connection
@ ./
[error] ./
/nodemailer/lib/dkim/index.js/nodemailer/lib/dkim/index.js 10:11-24Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/dkim
@ ./
[error] ./
/graceful-fs/graceful-fs.js/graceful-fs/graceful-fs.js 1:9-22Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/graceful-fs
@ ./
[error] ./
/nodemailer/lib/mime-node/index.js/nodemailer/lib/mime-node/index.js 7:11-24Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/nodemailer/lib/mime-node
@ ./
[error] ./
/jsonfile/index.js/jsonfile/index.js 5:8-21Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/jsonfile
@ ./
[error] ./
/graceful-fs/fs.js/graceful-fs/fs.js 3:9-22Module not found: Error: Cannot resolve module 'fs' in /app/node_modules/graceful-fs
@ ./
[error] index@abd3c817648fe96378b8.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [../~/fs-extra/lib/util/assign.js:5,0]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yapi-vendor@1.11.0 build-client:
NODE_ENV=production ykit pack -mnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yapi-vendor@1.11.0 build-client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
vinson-zhang commentedon Mar 7, 2023
+1
yang-leicheng commentedon Mar 15, 2023
+1,有可以解决的方案吗
tiger-colonel commentedon May 4, 2023
+1
zystudios commentedon Apr 23, 2024
参考 YMFE/yapi#2727