elidoran / cosmos-browserify

Browserify npm modules for client side in Meteor packages
MIT License
78 stars 12 forks source link

Sometimes cosmos:browserify freezes (loads forever?). #17

Closed trusktr closed 8 years ago

trusktr commented 9 years ago

For example, I'll see this in my console:

> meteor
[[[[[ ~/src/nowgoin+mobile_cordova/meteor-app ]]]]]

=> Started proxy.
=> Started MongoDB.
   Loading plugin `CosmosBrowserify` fro...  \

and it'll stay there forever. I'm not sure if that's Meteor's fault of cosmos:browserify since it says "Loading plugin CosmosBrowserify fro... \" so I guess it might be Meteor loading the plugin, and the plugin isn't doing anything yet. But just posting here just in case.

trusktr commented 9 years ago

My CPU goes to 100% and stays there.

trusktr commented 9 years ago

I posted here too, just in case: https://github.com/meteor/meteor/issues/5177

trusktr commented 9 years ago

Note: My app isn't directly using cosmos:browserify. Some Meteor packages are (I think packages relating to React).

trusktr commented 9 years ago

I believe that package that is depending on cosmos:browserify is some dependency of the react-meteor-data package. I'm on Meteor 1.2-rc.12.

trusktr commented 9 years ago

It's been loading for like 20 minutes.

elidoran commented 9 years ago

Are you using the meteor-1.2-api branch of browserify? If not, please do so and let me know. I'd like some feedback on it beyond my own testing.

If you are using it, please, give me some more specifics, like, which packages are you loading? If I can recreate it hanging like that I can work on figuring it out. :)

trusktr commented 9 years ago

@elidoran Yeah, I was on 1.2-rc.12 when this was happening. But I just downgraded to PLUGINS-PREVIEW@2 and it's still happening.

trusktr commented 9 years ago

Oh, not the branch. Misread. Let me try.

trusktr commented 9 years ago

Seems like deleting ~/.meteor and my app's .meteor/local got us past this problem, and now I've been on

[[[[[ ~/src/nowgoin+mobile_cordova/meteor-app ]]]]]

=> Started proxy.
=> Started MongoDB.
   Processing files with templating (for...  -

for 10 minutes. I wonder what is going on here.

elidoran commented 9 years ago

Now that Meteor 1.2 is officially released, please try cosmos:browserify@0.7.0 (made for Meteor 1.2) and see how it goes.

khacluan commented 9 years ago

@elidoran @trusktr still Loading pluginCosmosBrowserifyfro... \ after upgrade to cosmos:browserify@0.7.0

paulshir commented 9 years ago

I was having the same issue. I don't actually think it is an issue with CosmosBrowserify.

I am using webpack and the outputted js file was over 2MB big. I found this issue https://github.com/meteor/meteor/issues/5198 so removed the ecmascript package (doing this conversion in webpack) and also started minifying my code.

The problem has since gone away. Hope this helps you also.

elidoran commented 8 years ago

@trusktr @khacluan Still having trouble, or, may I close this issue?

trusktr commented 8 years ago

We can close. I can re-open if it happens again.

trusktr commented 8 years ago

@elidoran Someone else may have experienced this same issue: https://forums.meteor.com/t/seriously-you-need-to-fix-your-build-system/15309/14?u=joe

kevinchiu commented 8 years ago

I am experiencing this issue after expanding the size of a javascript file in my project (which holds a large json array).

leijing7 commented 8 years ago

I had the same issue after I put a 2M js file in the client directory.

aaronjudd commented 8 years ago

I experience this on a regular basis (Meteor 1.2.1). It seems to occur when I've restarted the build process mid stream while browserify (0.9.3) was being loaded. the issue is very bad while building / using velocity for tests, but I don't see it in production or regular dev builds. It feels like the package is getting corrupted, but haven't investigated further.

akinnee commented 8 years ago

I'm experiencing this after adding and then removing https://atmospherejs.com/universe/react-bootstrap

mkarliner commented 8 years ago

I'm getting after installing ahref:dragula

logvik commented 8 years ago

I just have resolved it by renaming from .meteor to _.meteor, then ran in console meteor create ./ and copy paste

.finished-upgraders
packages
platforms
release
versions

The problem is in old build info from .meteor May be it will help for somebody.