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

Initial release errors (TypeError versions.filter) #134

Open
skovy opened this issue Jan 29, 2022 · 0 comments
Open

Initial release errors (TypeError versions.filter) #134

skovy opened this issue Jan 29, 2022 · 0 comments
Labels
type/bug Something is not working the way it should

Comments

@skovy
Copy link

skovy commented Jan 29, 2022

Screenshot

image

Description

Run yarn -s dripip preview-or-pr
    TypeError: versions.filter is not a function
Error: Process completed with exit code 1.

I believe this error is being thrown because this code is erroring:

function getPackageVersions(packageName: string): string[] {
// todo do http request instead of cli spawn for perf
const result = spawnSync('npm', ['show', packageName, 'versions', '--json'])
if (result.error) throw result.error
return JSON.parse(result.stdout)
}

Repro Steps/Link

  • Create a new package repo
  • Open a pull request to add dripip workflow
  • Errors fetching package versions since the package doesn't exist yet

For now, I worked around this by manually publishing, this then worked as expected.

@skovy skovy added the type/bug Something is not working the way it should label Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is not working the way it should
Projects
None yet
Development

No branches or pull requests

1 participant