Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Throws TypeError when top-level package.json does not exist #76

Open
FredKSchott opened this issue Oct 20, 2019 · 0 comments · May be fixed by #87
Open

Throws TypeError when top-level package.json does not exist #76

FredKSchott opened this issue Oct 20, 2019 · 0 comments · May be fixed by #87
Labels
bug Something isn't working

Comments

@FredKSchott
Copy link
Owner

FredKSchott commented Oct 20, 2019

Original Discussion: https://www.pika.dev/npm/@pika/pack/discuss/5
/cc @mmahandev, @FredKSchott

If no top-level package.json exists, we see this error:

TypeError: Cannot read property '@pika/pack' of undefined
    at Build.init (C:\Users\Reese\AppData\Roaming\npm-cache\_npx\8556\node_modules\@pika\pack\dist-node\index.js:2293:17)
    at <anonymous>

Instead, we should see something nice like:

Error: No top-level package.json manifest found. 
Exiting...
@FredKSchott FredKSchott added the bug Something isn't working label Oct 20, 2019
@copperwall copperwall linked a pull request Sep 14, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant