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

多个入口文件 #5

Open
Cupcc opened this issue Jan 14, 2025 · 0 comments
Open

多个入口文件 #5

Cupcc opened this issue Jan 14, 2025 · 0 comments

Comments

@Cupcc
Copy link

Cupcc commented Jan 14, 2025

module.exports = {
  file: './bin/www',
  icon: 'app.ico',
  name: 'xxx',
  description: 'x',
  company: 'x',
  version: '1.0.0',
  copyright: 'copyright',
  pkg: {
    targets: ['node16-win-x64'],
    outputPath: 'dist',
    assets: ['node_modules/**/*'],
  },
};
    var _this = _super !== null && _super.apply(this, arguments) || this;
                                          ^

Error [ReportedError]: Not more than one entry file/directory is expected
at new ReportedError (E:\Projects\web\zjq-admin\node_modules\pkg-fetch\lib-es5\log.js:96:47)
at wasReported (E:\Projects\web\zjq-admin\node_modules\pkg-fetch\lib-es5\log.js:107:25)
at exec (E:\Projects\web\zjq-admin\node_modules\pkg\lib-es5\index.js:227:37)
at build (E:\Projects\web\zjq-admin\node_modules\pkg-exe-build\index.js:71:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
wasReported: true
}

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

1 participant