Skip to content

Fix error when using --inject #967

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

beautifulrem
Copy link

the error example:

file:///home/remi/.node/lib/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:///home/remi/.node/lib/node_modules/pake-cli/dist/cli.js:572:21)
at async LinuxBuilder.buildAndCopy (file:///home/remi/.node/lib/node_modules/pake-cli/dist/cli.js:656:9)
at async LinuxBuilder.build (file:///home/remi/.node/lib/node_modules/pake-cli/dist/cli.js:748:17)
at async Command. (file:///home/remi/.node/lib/node_modules/pake-cli/dist/cli.js:1013:5)

Node.js v18.19.1

Signed-off-by: beautifulrem <98527099+beautifulrem@users.noreply.github.com>
@beautifulrem beautifulrem marked this pull request as ready for review May 9, 2025 20:54
dawn-lc added a commit to dawn-lc/Pake that referenced this pull request May 10, 2025
Signed-off-by: dawn-lc <30336566+dawn-lc@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant