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

Bug: Copyfiles 2.4.1 doesn't work #100

Closed
DanilAndreev opened this issue Mar 25, 2021 · 3 comments
Closed

Bug: Copyfiles 2.4.1 doesn't work #100

DanilAndreev opened this issue Mar 25, 2021 · 3 comments

Comments

@DanilAndreev
Copy link

DanilAndreev commented Mar 25, 2021

Bug Report

Overview

When I am trying to copy my files I get next error:

  outDir = outDir.startsWith('~') ? untildify(outDir) : outDir;
                  ^

TypeError: Cannot read property 'startsWith' of undefined

My copyfiles script:

copyfiles --up 2 "src/**/*.hbs" dist --verbose

Expected

In version 2.3.0 everything works as expected.

Versions

Copyfiles - 2.4.1
NodeJS - 12.18.2
Yarn - 1.22.4

@DanilAndreev
Copy link
Author

DanilAndreev commented Mar 25, 2021

I am the lucky owner of the issue number 100. 😃

@calvinmetcalf
Copy link
Owner

could you edit node_modules/.bin/copyfiles and put a console.log(argv); right before line 40?

@DanilAndreev
Copy link
Author

Now everything works as expected on the version 2.4.1. Don't know what happened a week ago 😃. Thanks. Maybe yarn incorrectly installed the package twice.

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

2 participants