hwillson / meteor-stub-collections

Stub out Meteor collections with in-memory local collections.
MIT License
24 stars 17 forks source link

Uncaught SyntaxError: Unexpected token '*' L5546 #37

Open smohantyCME opened 4 years ago

smohantyCME commented 4 years ago

Hi! When importing this package into an application, I get a JS console error in the browser. The package works just fine in the CLI for my actual unit tests, but I get an error in the console which prevents me from viewing my test results in the browser. It also shows the error when I just run my app regularly (not in test mode).

Upon inspecting the error, it looks like there's a syntax error for the last function of the file.

function get(object, pathI
 * //tOg.get(object, [gglobal;

/*ues.
 0].b.c(

Looks like the whole get function was intended to be commented out. Can we please get that removed so that we can reinstall the package and not get the error. Thanks!

coagmano commented 4 years ago

Hey, in case you don't see my reply on the forums, this doesn't look like a bug for this package, but I'll be happy to help debug further over on the forums: https://forums.meteor.com/t/how-to-edit-meteor-package-source-files/51532/3?u=coagmano

(Also as a reference for hwillson, so he can see the context as well)