Code Monkey home page Code Monkey logo

Comments (6)

ephemer avatar ephemer commented on May 18, 2024

Hi, are you getting this error on the client or the server? At what point do you see it?

I think the problem may be with Meteor's load order rules (everything in the 'lib' directory will be loaded before other code). Try putting your code in a Meteor.startup() block:

Meteor.startup(function(){
 // your code
});

from meteor-json-collections.

boaticus avatar boaticus commented on May 18, 2024

I was referencing it in a file in my /lib folder. I'll try wrapping it in a startup method as you suggested.

from meteor-json-collections.

boaticus avatar boaticus commented on May 18, 2024

Yep, still same error, even when wrapped in a Meteor.startup.

image

image

The test json file lives at /private/tester.collection.json

from meteor-json-collections.

ephemer avatar ephemer commented on May 18, 2024

Hi Ken,

the file has to be named like this, otherwise it won’t be recognised and JSONCollections won’t exist:

something.collection_name.collection.json

On Mon, May 11, 2015 at 5:12 PM, Ken Wallace [email protected]
wrote:

Yep, still same error, even when wrapped in a Meteor.startup.
image
image

The test json file lives at /private/tester.collection.json

Reply to this email directly or view it on GitHub:
#1 (comment)

from meteor-json-collections.

boaticus avatar boaticus commented on May 18, 2024

That was it. Thanks!

from meteor-json-collections.

ephemer avatar ephemer commented on May 18, 2024

My pleasure, glad you got it working!

from meteor-json-collections.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.