App broken after meteor update, can't determine what package update broke it - meteor

Here's what I know:
After running meteor update my meteor app is broken. When I run meteor on the CLI, I get the error below, at the bottom of this post.
I was already using Meteor 1.5, and that was NOT upgraded by the meteor update.
Here's what I DON'T know:
What package update caused this error?
Here's what I have tried:
Deleted versions file, ran meteor update. Still got same error.
Updated to Meteor 1.5.1. Got different errors (sorry, did not log them :( )
Deleted and reinstalled Meteor from scratch. Still got same error.
Deleted local copy of the app source and cloned again from git. Also uninstalled and reinstalled Meteor again before doing this. Still got same error.
Tried: meteor update modules (after which I got the message that modules was already at the latest version).
I'm not sure how to isolate what package update caused this problem, as I do not have a log of what was updated (a mistake I won't be making again!). And I have the package versions file in my gitignore (basically per best practices), so I can't look at git history to see what packages were updated and might be causing the problem.
The error:
W20170713-10:43:06.627(-5)? (STDERR) /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/boot.js:391
W20170713-10:43:06.654(-5)? (STDERR) }).run();
W20170713-10:43:06.655(-5)? (STDERR) ^
W20170713-10:43:06.656(-5)? (STDERR)
W20170713-10:43:06.656(-5)? (STDERR) TypeError: module.makeNsSetter is not a function
W20170713-10:43:06.657(-5)? (STDERR) at meteorInstall.node_modules.meteor.shell-server.main.js (packages/shell-server/main.js:1:55)
W20170713-10:43:06.657(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:333:9)
W20170713-10:43:06.657(-5)? (STDERR) at require (packages/modules-runtime.js:228:16)
W20170713-10:43:06.658(-5)? (STDERR) at /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/packages/shell-server.js:568:15
W20170713-10:43:06.658(-5)? (STDERR) at /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/packages/shell-server.js:574:3
W20170713-10:43:06.658(-5)? (STDERR) at /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/boot.js:338:34
W20170713-10:43:06.658(-5)? (STDERR) at Array.forEach (native)
W20170713-10:43:06.659(-5)? (STDERR) at Function._.each._.forEach (/Users/[redacted]/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170713-10:43:06.659(-5)? (STDERR) at /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/boot.js:158:5
W20170713-10:43:06.660(-5)? (STDERR) at /Users/[redacted]/Source/[redacted]/app/.meteor/local/build/programs/server/boot.js:387:5

I finally solved my problem via the scorched earth method, basically just creating a new meteor project and copying over my app source alone and then installing all the packages listed in the original project and packages files. I don't know what my original problem was, but everything is working now.

Related

Meteor don't run after update to 2.7.3 from 2.2 - AccountsTemplates Error

I remove useraccounts:core from my project to update at the last version of meteor and than add again useraccounts:core when I have update to 2.7.3, but now meteor don't run.
Like the title, there is this error in promise_server.js and AccountTemplates have you any suggestions ?
=> Started proxy.
=> Started MongoDB.
W20220812-16:05:04.937(2)? (STDERR) /home/----/.meteor/packages/promise/.0.12.0.7cv555.76nvp++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:218
W20220812-16:05:04.966(2)? (STDERR) throw error;
W20220812-16:05:04.967(2)? (STDERR) ^
W20220812-16:05:04.967(2)? (STDERR)
W20220812-16:05:04.968(2)? (STDERR) Error: AccountsTemplates: You must add at least one account service!
W20220812-16:05:04.968(2)? (STDERR) at AT._init (packages/useraccounts:core/lib/server.js:19:11)
W20220812-16:05:04.969(2)? (STDERR) at packages/useraccounts:core/lib/server.js:183:21
W20220812-16:05:04.969(2)? (STDERR) at Function.time (/home/----/Documenti/GitHub/prevenzionecantieri/.meteor/local/build/programs/server/profile.js:273:30)
W20220812-16:05:04.970(2)? (STDERR) at /home/----/Documenti/GitHub/prevenzionecantieri/.meteor/local/build/programs/server/boot.js:415:15
W20220812-16:05:04.970(2)? (STDERR) at /home/----/Documenti/GitHub/prevenzionecantieri/.meteor/local/build/programs/server/boot.js:465:7
W20220812-16:05:04.971(2)? (STDERR) at Function.run (/home/----/Documenti/GitHub/prevenzionecantieri/.meteor/local/build/programs/server/profile.js:280:14)
W20220812-16:05:04.971(2)? (STDERR) at /home/----/Documenti/GitHub/prevenzionecantieri/.meteor/local/build/programs/server/boot.js:463:13
=> Exited with code: 1
Where is the problem ?
I have try with:
meteor add brettle:accounts-add-service
but I have this error:
=> Errors while adding packages:
While selecting package versions:
error: Conflict: Constraint accounts-base#1.2.0 is not satisfied by accounts-base 2.2.4.
Constraints on package "accounts-base":
* accounts-base#~2.2.3 <- top level
* accounts-base#2.1.0 <- useraccounts:core 1.16.2
* accounts-base#2.2.0 <- service-configuration 1.3.0 <- accounts-base 2.2.4 <- accounts-ui 1.4.2
* accounts-base#2.2.0 <- accounts-ui 1.4.2
* accounts-base#2.2.2 <- accounts-ui-unstyled 1.7.0 <- accounts-ui 1.4.2
* accounts-base#1.2.0 <- brettle:accounts-add-service 0.2.0
* accounts-base#1.2.0 <- brettle:accounts-multiple 0.0.8 <- brettle:accounts-add-service 0.2.0
I have solved:
Meteor reset
meteor add fetch
meteor add accounts-ui
meteor add service-configuration
meteor add accounts-password
meteor add accounts-ui
Now work, I have to restore the database locally but meteor run
Glad you solved the issue! Can you mark your question as Solved? So it's easier for people find it
Thanks

Meteor Issue after last update (materialize:materialize and fourseven:scss)

I had no errors before the last update about an hour ago. The update I made had the following changes:
Changes to your project's package version selections from updating package versions:
babel-runtime upgraded from 0.1.12 to 0.1.13
fourseven:scss upgraded from 3.10.0 to 3.10.1
materialize:materialize upgraded from 0.97.7 to 0.97.8
the current version of meteor is 1.4.2
after the update I get the following errors:
Uncaught Error: Scss compiler error: Undefined variable: "$medium-and-down"
Uncaught TypeError: Cannot read property 'Materialize' of undefined
ReferenceError: meteorInstall is not defined
this was after updating to materialize version 0.97.8
even after downgrading to version 0.97.7, I still get the same error.
Any help is appreciated. I have created this issue here.
Thanks again.
I've just resolved the same issue with this:
meteor remove materialize:materialize
meteor add materialize:materialize#=0.97.0
see https://stackoverflow.com/a/32609708/3863932
rm -rf node_modules
npm install

package alanning:roles at 1.0.6 is incompatible with Meteor 0.9.0 or later

My meteor version is 1.4.1.1 and have used my personalised package in which I am using alanning:roles (api.use(alanning:roles))
I am getting the following errors on my command prompt:
W20161111-16:24:34.950(5.5)? (STDERR) The package mizzao:user-status at 0.2.0 is incompatible with Meteor 0.9.0 or later.
W20161111-16:24:35.473(5.5)? (STDERR) If a new, compatible version of this package exists, running 'meteor update' should cause you to update.
W20161111-16:24:35.474(5.5)? (STDERR) The package alanning:roles at 1.0.6 is incompatible with Meteor 0.9.0 or later.
W20161111-16:24:35.474(5.5)? (STDERR) If a new, compatible version of this package exists, running 'meteor update' should cause you to update.
=> Started your app.
What am I doing wrong?
Got the answer simply write below command in your meteor project command prompt:
meteor update alanning:roles

Error after updating from 0.8.3 to 0.9.2

I've updated from 0.8.3 to the latest version (0.9.2) and I've received this error. I have gone so far as to create a new meteor (0.9.2) project, and transfer all of my code from the old project, then freshly install all packages required.
/Users/nathaniel/Desktop/ESOS/.meteor/local/build/programs/server/packages/meteorhacks_kadira.js:2682
throw err;
^
ReferenceError: Router is not defined
at app/common/router.js:1:36
at app/common/router.js:177:3
at /Users/nathaniel/Desktop/ESOS/.meteor/local/build/programs/server/boot.js:161:10
at Array.forEach (native)
at Function._.each._.forEach (/Users/nathaniel/.meteor/packages/meteor-tool/.1.0.31.sw6o3m++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at /Users/nathaniel/Desktop/ESOS/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 7

Meteor 0.6.5 update: underscore error

I recently updated my meteor app to 0.6.5 and I noticed that the underscore package not working anymore.
The error log is:
W20130814-20:31:26.431(-3)? (STDERR) /home/mariano/.meteor/tools/4010e5731d/lib/node_modules/fibers/future.js:173
W20130814-20:31:26.494(-3)? (STDERR) throw(ex);
W20130814-20:31:26.494(-3)? (STDERR) ^
W20130814-20:31:26.494(-3)? (STDERR) ReferenceError: _ is not defined
W20130814-20:31:26.496(-3)? (STDERR) at Package (packages/meteor-file/meteor-file.js:92)
W20130814-20:31:26.496(-3)? (STDERR) at packages/meteor-file.js:120:4
W20130814-20:31:26.496(-3)? (STDERR) at packages/meteor-file.js:127:3
W20130814-20:31:26.496(-3)? (STDERR) at mains (/home/mariano/borrar/blocnotas/.meteor/local/build/programs/server/boot.js:153:10)
W20130814-20:31:26.497(-3)? (STDERR) at Array.forEach (native)
W20130814-20:31:26.497(-3)? (STDERR) at Function._.each._.forEach (/home/mariano/.meteor/tools/4010e5731d/lib/node_modules/underscore/underscore.js:79:11)
W20130814-20:31:26.497(-3)? (STDERR) at /home/mariano/borrar/blocnotas/.meteor/local/build/programs/server/boot.js:80:5
Thanks for your help
If you're using an atmosphere (i.e. mrt) package, you may need to downgrade to 0.6.4.1 until the package author has had a chance to update to the new package API that is part of 0.6.5. You can find instructions here - https://groups.google.com/d/topic/meteor-talk/BbrjGcGGIzc/discussion
Hope that helps!
It looks like your (or someone else's) meteor-file.js package needs to register an explicit dependency for underscore. This was included automatically in versions prior to 0.6.5. Add the following in package.js:
Package.on_use(function (api) {
api.use('underscore', 'server');
});

Resources