question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not possible to have simpl-schema in two locations in node_modules (_constructorOptions key is missing "type")

See original GitHub issue

In that situation I get the following when trying to Collection.attachSchema: "_constructorOptions" key is missing "type"

So I think an existing instance of SimpleSchema is being treated as an object literal schema because the instanceof has failed because the schema was created in a node_modules/simpl-schema at a different path. That’s my guess anyway.

So currently this means I can’t debug my npm packages that also use SimpleSchema.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21

github_iconTop GitHub Comments

3reactions
SantoshSrinivas79commented, Apr 25, 2017

@aldeed Gentle request. Would be great if you could look into the PR for this!

3reactions
faisalhasnaincommented, Apr 4, 2017

@aldeed: Waiting for the fix, PR does resolves the issue. Community will be glad to see it approved and merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not possible to have simpl-schema in two locations in ... - GitHub
In that situation I get the following when trying to Collection.attachSchema : "_constructorOptions" key is missing "type".
Read more >
Migrating to Apollo Server 4 - Apollo GraphQL Docs
In Apollo Server 3, the parseOptions constructor option is used to modify how GraphQL parsing works in two unrelated places: when parsing GraphQL...
Read more >
Connection "default" was not found with TypeORM
Solution is to make sure that you have exactly the same version installed in each package. To be on the safe side, delete...
Read more >
Schematics for libraries - Angular
In your library project's package.json file, add a "schematics" entry with the path to your schema file. The Angular CLI uses this entry...
Read more >
Firebase JavaScript SDK Release Notes - Google
get () where Query filters were not applied to data in some cases. Added the missing type definitions for startAfter() and endBefore() ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found