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

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

Related

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

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.

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 update to 0.8.3 breaks app

Today I updated my Meteor project to version 0.8.3
$> [master●] % mrt update
✓ normalize.css
branch: https://github.com/rithis-archive/meteor-normalize.css.git#master
✓ Meteor.cron
branch: https://github.com/alexsuslov/Meteor.cron.git#master
✓ iron-router
tag: https://github.com/EventedMind/iron-router.git#v0.9.1
✓ mongodb-server-aggregation
tag: https://github.com/zvictor/meteor-mongo-server.git#v1.0.3
✓ reactive-publish
tag: https://github.com/Diggsey/meteor-reactive-publish.git#v0.1.6
✓ reststop2
tag: https://github.com/Differential/reststop2.git#v0.6.0
✓ kadira
tag: https://github.com/meteorhacks/kadira.git#v2.4.13
✓ subs-manager
tag: https://github.com/meteorhacks/subs-manager.git#v1.0.2
✓ async
tag: https://github.com/peerlibrary/meteor-async.git#v0.9.0-1
✓ npm
tag: https://github.com/arunoda/meteor-npm.git#v0.2.6
✓ iron-layout
tag: https://github.com/EventedMind/iron-layout.git#v0.2.0
✓ server-deps
tag: https://github.com/Diggsey/meteor-server-deps.git#v0.1.2
✓ blaze-layout
tag: https://github.com/EventedMind/blaze-layout.git#v0.2.5
✓ iron-core
tag: https://github.com/EventedMind/iron-core.git#v0.2.0
✓ iron-dynamic-template
tag: https://github.com/EventedMind/iron-dynamic-template.git#v0.2.1
Done installing smart packages
Now when I run it $> mrt I get the following output:
Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
[[[[[ ~/tmp/test ]]]]]
=> Started proxy.
=> Meteor 0.8.3 is available. Update this project with 'meteor update'.
=> Started MongoDB.
iron-router: updating npm dependencies -- connect...
kadira: updating npm dependencies -- debug, usage...
=> Errors prevented startup:
While building package `iron-router`:
error: no such package: 'reactive-dict#1.0.0'
error: no such package: 'deps#1.0.0'
error: no such package: 'underscore#1.0.0'
error: no such package: 'ejson#1.0.0'
error: no such package: 'jquery#1.0.0'
error: no such package: 'ui#1.0.0'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: 'webapp#1.0.0'
=> Your application has errors. Waiting for file change.
Now when I do meteor update the problem remains. Even if I first do meteor update and then mrt update I end up with the same result. Any suggestions ?
The problem is that running mrt update has updated iron:router to the latest version (0.9.1), which is only compatible with meteor 0.9 release candidates (see the explanation here : Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3)).
What you need to do is downgrading iron-router to 0.8.2 which is compatible with meteor 0.8.3.
To do so, you'll have to modify your smart.json like this :
{
"packages": {
"iron-router":{
"version": "0.8.2"
}
}
Then clean your project by removing smart.lock and run mrt install to make sure meteorite has accounted for the change.
If everything is OK the iron-router version symlinked in your project packages folder should point to iron-router#0.8.2

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