expo / expo/snack

Cannot use gitpkg packages in snack

Open
#146 1 comment 5 reactions 0 assignees View on GitHub
snack-sdk snackager
Dominant language
TypeScript
Stars
508
Forks
178
Avg merge
5h 7m
Merged PRs (30d)
5

Description

### Summary

> package.json (9:5)
Invalid dependency 'react-native-gifted-chat' (version 'https://github.com/myckhel/react-native-gifted-chat.git#react-native-gifted-chat-v0.16.7-gitpkg' is not a valid semver)
Retry

### What platform(s) does this occur on?

Android, iOS, Web

### SDK Version

41

### Reproducible demo or steps to reproduce from a blank project

Add:
`"react-native-gifted-chat": "https://github.com/myckhel/react-native-gifted-chat.git#react-native-gifted-chat-v0.16.7-gitpkg",`
to package.json

Contributor guide

Open the contributing guide

Research direction

Start with the blank-project reproduction and inspect how the package.json dependency is parsed and validated in Snack. Confirm the behavior across Android, iOS, and Web, then verify that the gitpkg URL is accepted as a dependency without the invalid-semver error.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.