-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
App displays blank screen when migrating from a previous version #4585
Comments
I'm running the latest release and just started the app using |
undefined is not an object (evaluating 'this.props.shop.name') |
@stunjiturner Is this a fresh install, or are you trying to upgrade from an earlier version? |
Fresh download zip 10 minutes ago, as well as upgraded existing app and the deploy to heroku button
|
Just tried this from a fresh install ( |
@zenweasel have you tried the deploy to heroku button? That’s not working either and that’s independent of my developer work environment? I will investigate on a new machine |
Looks like this happens if I:
So it is probably missing a migration somewhere? |
I don't see any errors in either client or server though. Just completely blank. |
Resetting the db fixes it so it's probably a migration issue. |
Reaction reset -n ?
S Tunji Turner
sightuary
@sightuary
… On Aug 28, 2018, at 11:54 PM, Brent Hoover ***@***.***> wrote:
Resetting the db fixes it so it's probably a migration issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@stunjiturner yes |
I can confirm that a fresh install is possible, using rm -rf node_modules && meteor npm install still nothing using 1.15 and latest swag-shop, anybody test the deploy to heroku? error: undefined is not an object (evaluating 'this.props.shop.name') in js file, at method
|
Testing the "Deploy to Heroku" button I see the same behavior that @stunjiturner was seeing (blank screen + errors in console). You can see this URL here for now: https://infinite-headland-32258.herokuapp.com/ |
@stunjiturner The error you're seeing seems to suggest that the |
On my test app I removed the renderShopSelect calls from the JavaScript files that call the method and I still get a blank screen. ?
S Tunji Turner
sightuary
@sightuary
… On Aug 30, 2018, at 11:15 AM, Spencer Norman ***@***.***> wrote:
@stunjiturner The error you're seeing seems to suggest that the shop is not available when running renderShopSelect - I'm curious if this is dependent on swag-shop. That would seem likely if not for @zenweasel's finding that deploy to heroku is also failing, I'm assuming without the swag shop?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@spencern The Heroku deploy was just stock Reaction without the swag shop. Which seems strange because there is no "migration" going on and a stock |
@zenweasel I agree, it seems that perhaps we have multiple issues here. |
@spencern It might be a "production" issue if users can't migrate from one version to another. It's actually blocking me from deploying the latest release to the demo site. |
Sure, what I meant by that is that it's not necessarily an issue that's only seen in code that's been bundled for production |
One more observation here: I have also noticed the blank page issue when I run 1.15 with the catalog sample dataset from the starterkit. |
Actually this happens with the dev dataset as well. |
Any feedback on this issue from core team, I have a free day next week for this issue alone, if pointed in the correct direction |
@stunjiturner If you need a quick fix, paste this in server startup code and it should fix it: import { Packages, Shops } from "/lib/collections";
Packages.rawCollection().update({
"layout.structure.template": "products"
}, {
$set: {
"layout.$[elem].structure.template": "Products"
}
}, {
arrayFilters: [{ "elem.structure.template": "products" }],
multi: true
});
Packages.rawCollection().update({
"registry.template": "products"
}, {
$set: {
"registry.$[elem].template": "Products"
}
}, {
arrayFilters: [{ "elem.template": "products" }],
multi: true
});
Shops.rawCollection().update({
"layout.structure.template": "products"
}, {
$set: {
"layout.$[elem].structure.template": "Products"
}
}, {
arrayFilters: [{ "elem.structure.template": "products" }],
multi: true
}); You can then delete it after it has run once against your database in each environment. We'll also put together a patch adding this migration if you want to wait for that. |
Issue Description
The latest release 1.15 produces a blank screen on initial load.
javascript error logged in the browser console.
TypeError: undefined is not an object (evaluating 'this.props.shop.name')
Steps to Reproduce
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
Push To Heroku Button
or
Reaction Docker Compose Up
or
reaction command line
Possible Solution
Not obligatory, but suggest a fix/reason for the bug
Versions
1.15
The text was updated successfully, but these errors were encountered: