Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iron router showing "Organize your meteor application" after bundling #976

Closed
jamesfebin opened this issue Oct 29, 2014 · 35 comments
Closed

Comments

@jamesfebin
Copy link

I recently upgraded to 1.0 .
Everything works fine while in the development stage
But after i build the package using meteor build and run it

I am taken to a custom iron router page which has the following message


Organize your Meteor application.

Router.route('/', function () {
  this.render('Home', {
    data: function () { return Items.findOne({_id: this.params._id}) }
  });
});

Router code

Router.route "/",
        onBeforeAction:(pause) ->
                if not Meteor.user() and not Meteor.loggingIn()
                        @render('login')
                else
                        @next()
        waitOn: ->
                @subscribe("teamsData")
                Session.set('page','homeFeed')
                Session.set('teamId','')
                Session.set('limit',5)
                Session.set('loggingOut',false);
        action:->
                if @ready
                        @render "feed"
@cmather
Copy link
Contributor

cmather commented Oct 29, 2014

This works in development but not after build time? That's very strange. Can you post a reproduction repo that someone can clone and take a look?

@jamesfebin
Copy link
Author

@cmather The issue was because a server variable was undefined..

@thomasgalibert
Copy link

I have the same issue and I cannot find a way to fix it. Is there a way to avoid this splash screen or have more informations for debugging what's disturbing iron router ?

@mateutek
Copy link

Same issue, but i use angular-meteor.

@the1mills
Copy link

I have this issue - everything is fine locally, but once I deploy to meteor.com, then all I get is the iron:router splash and nothing else. I assume it's a server side variable problem, but not sure...

@marineb
Copy link

marineb commented Feb 11, 2015

Same issue and it just started happening today. Anyone figured it out?

@thomasgalibert
Copy link

I think you have some issues in production mode (check your
console) that prevent iron-router to work properly. If you fix it,
it's gone be fine.

Le Mer 11 févr 2015, à 17:33, Marine Boudeau a écrit :

Same issue and it just started happening today. Anyone figured it out?

— Reply to this email directly or view it on GitHub[1].

Links:

  1. Iron router showing "Organize your meteor application" after bundling  #976 (comment)

@marineb
Copy link

marineb commented Feb 12, 2015

You're right. Thank you!

@vgauthier
Copy link

Same issue and nothing's special appear on the console

@kuaikuaikim
Copy link

@cmather @jamesfebin .
I have the same issue when it run on the production mode. I see your solution and set a server variable. But i dont konw which variable and how to set it. can you help me.
Very thanks!

@jamesfebin
Copy link
Author

@quickj I assume some of your apis of iron router are old. Do one thing comment all your routes and just use the / route . Refer iron router documentation. Let me know if it works out

@kuaikuaikim
Copy link

@jamesfebin I have commented as you said.But get the same issue "Organize your Meteor application".
I checked the console and find two error:

  1. Uncaught Error: Not permitted. Untrusted code may only remove documents by ID. [403]
  2. GET https://www.youtube.com/iframe_api net::ERR_INSECURE_RESPONSE
    Are these two error caused the problem?

@Ethaan
Copy link

Ethaan commented Mar 5, 2015

@quickj
1. Uncaught Error: Not permitted. Untrusted code may only remove documents by ID. [403]

You get this error when you are trying to do the follow

Collection.remove({name:someValue}) //will cause [403] erro

//correct way
Collection.remove({_id:this._id})

2. GET https://www.youtube.com/iframe_api net::ERR_INSECURE_RESPONSE

Check this SO related

@kuaikuaikim
Copy link

@Ethaan It works fine on my local,but get these two error on production mod. So we must add the "_id" field on the "Collection.remove()" function?

@kuaikuaikim
Copy link

@Ethaan i dont think these two errors caused the "Organize your Meteor application" issue. I try it on my local and also find these two error but works fine.

@binhwpo
Copy link

binhwpo commented Mar 10, 2015

I'm also having this annoying thing after running meteor add manuelschoebel:ms-seo

screen-shot-2015-03-10-at-2 22 45-pm

Please help. Thanks.

@llaine
Copy link

llaine commented Jun 15, 2015

+1

2 similar comments
@KFoxder
Copy link

KFoxder commented Jun 16, 2015

+1

@satyavh
Copy link

satyavh commented Jun 28, 2015

+1

@cmather
Copy link
Contributor

cmather commented Jun 28, 2015

happy to accept a pull request to take this out

On Sun, Jun 28, 2015 at 1:47 PM, Satya van Heummen <[email protected]

wrote:

+1


Reply to this email directly or view it on GitHub
#976 (comment)
.

@raihle
Copy link

raihle commented Sep 2, 2015

Make sure to check your console output for e.g.

Uncaught TypeError: Cannot set property 'created' of undefined

(In this case caused by javascript referring to a delete template)

Errors like this will still let your app work in development but may cause the above screen when your javascript has been concatenated.

@wesleyfsmith
Copy link

+1

1 similar comment
@Chicooz
Copy link

Chicooz commented Mar 8, 2016

+1

@ThomsCass
Copy link

I use iron-router for server side otherwise I use angular-meteor.
+1

@odb366
Copy link

odb366 commented Mar 29, 2016

After I updated to Meteor 1.3 I have the same error. Please help.

@markmitton
Copy link

+1

@ThomsCass
Copy link

Here is a workaround has no solution is provided

$(function() {
            setTimeout(function(){
                $( "body div" ).last().remove();
            }, 10);
        });

@Harishgargprince
Copy link

Harishgargprince commented Apr 16, 2016

+1

@baberuth22
Copy link

You have an error in your code. Check the browser console.

@zhenwan
Copy link

zhenwan commented Oct 30, 2016

same here, no error shown in console. Is there a solution yet?

@paolo-g
Copy link

paolo-g commented Dec 29, 2016

+1

Seems silly that there is no configuration option to stop this welcome message from showing. Am using the solution @ThomsCass provided in Urigo/angular-meteor#1314 while shouting into a pillow

@tae-jun
Copy link

tae-jun commented Jan 8, 2017

+1

@chrisbutler
Copy link
Contributor

@paolo-g @tae-jun @ThomsCass added in 1.1.0

@tae-jun
Copy link

tae-jun commented Jan 15, 2017

Thanks @chrisbutler !

@paolo-g
Copy link

paolo-g commented Jan 31, 2017

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests