Closed dcsan closed 9 years ago
I created a branch here to demo this https://github.com/dcsan/flowwy/tree/failing-flex to run it:
git clone git@github.com:dcsan/flowwy.git
cd flowwy
git checkout failing-flex
cd app
meteor
this error is fairly cryptic, but did something around a version name or package description file... where code is expecting a string ... ?
TypeError: Cannot call method 'split' of undefined
Object.exports.parse
to be clear: v0.3.1 is OK
checking the diff
https://github.com/IjzerenHein/famous-flex/compare/v0.3.1...v0.3.2
Are you using a certain file from dist/
?
no, from src
the famono project allows us to refer to your component directly like this:
"flex": {
"git": "https://github.com/IjzerenHein/famous-flex.git",
"root": "src",
}
Well in that case I'm really curious what's causing the build to break. Some new classes and changes were added, but nothing special. Perhaps you can use a binary search to pinpoint the commit that's causing the problem?
OK it seems this commit here is the problem:
https://github.com/IjzerenHein/famous-flex/commit/aa4649e494d9fa6238f4ae2f9d22d322f5079d1e
Do you think it could be this line? :/
* @copyright Gloey Apps, 2014/2015
I'm not sure what Meteor and Famono do, but the rest is just plain vanilla Javascript and Famo.us.
thanks for the tip, I'll try to look into it.
FYI famono is a type of module loader allowing you to use AMD and other package formats with meteor. Unfortunately when it has problems they are super cryptic internals stuff :astonished: https://github.com/raix/Meteor-famono
OK so going thru the file line-by-line this is what causes the crash:
var LayoutController = require('./LayoutController');
not sure what is special about that require as it sits in a block with some others...
Ah I see. I think that line causes a circular reference.
If you can have a look at why that causes famono to bork, then I'll have a look at how I can avoid that reference.
thanks for all your help! perhaps we'll get some input from famono author too.
flex is an amazing package and in fact famous is pretty unusable without it. They should make this part of famous core and forget the other internal janky scrollviews!
Hey, I've removed the circular reference. Let me know whether this fixes the issue.
yes! this fixed it. thanks very much!
Awesome, glad that solves it!
when using the master branch in a meteor project, with famono, i get the error below.
With the previous tag
v0.3.1
I am able to happily get the app to boot.