ardatan / ardatan/meteor-webpack
Cannot use `aldeed:schema-index`, getting error "index" is not a supported property
- Dominant language
- JavaScript
- Stars
- 123
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
I'm having this issue with `aldeed:schema-index` although I think the same issue would apply also to other meteor packages. Basically what this package does is add several options to SimpleSchema.
```
SimpleSchema.extendOptions([
'index', // one of Number, String, Boolean
'unique', // Boolean
'sparse', // Boolean
]);
```
The problem is that I'm getting the following error:
```
Error: Invalid definition for username field: "index" is not a supported property
```
I've tried to use your example of React by adding `simple-schema` and I'm getting the exact same error.
It seems like the meteor package is not executed or is using a different version of SimpleSchema.
Or maybe I missed something in how to actually use this package since I don't have much experience in meteor.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the error using the package's React example with simple-schema and aldeed:schema-index. Inspect which SimpleSchema version is loaded and whether the Meteor package executes its option extension; done means the example accepts the index property without the unsupported-property error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100