使用--inject一直报错,看一下 #944
Unanswered
hushao1212
asked this question in
Q&A
Replies: 1 comment
-
是的我也遇到了这个问题,同样的报错 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
C:\Users\hsp12\Desktop\my_pake_project>pake https://www.baidu.com --name Example2App --inject C:\Users\hsp12\Desktop\my_pake_project\custom.js
✼ No icon given, default in use. For a custom icon, use --icon option.
✺ Installing package...
up to date, audited 223 packages in 2s
73 packages are looking for funding
run
npm fund
for details√ Package installed!
file:///C:/Users/hsp12/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:572
if (!inject.every(item => item.endsWith('.css') || item.endsWith('.js'))) {
^
TypeError: inject.every is not a function
at mergeConfig (file:///C:/Users/hsp12/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:572:21)
at async WinBuilder.buildAndCopy (file:///C:/Users/hsp12/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:656:9)
at async WinBuilder.build (file:///C:/Users/hsp12/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:649:9)
at async Command. (file:///C:/Users/hsp12/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:1013:5)
Node.js v22.14.0
Beta Was this translation helpful? Give feedback.
All reactions