简体   繁体   中英

Meteor Angular2 Tutorial error after adding ui-accounts

After section 8 (user accounts) in Meteor Angular 2 tutorial (social app) nothing is shown on the browser and in F12 I get this error:

install.js:85 Uncaught Error: Cannot find module 'meteor/accounts-base'require @ install.js:85meteorInstall.node_modules.angular2-meteor-accounts-ui.build.login-buttons.js @ login-buttons.js:13fileEvaluate @ install.js:153require @ install.js:82meteorInstall.node_modules.angular2-meteor-accounts-ui.build.index.js @ index.js:5fileEvaluate @ install.js:153require @ install.js:82meteorInstall.client.imports.parties-list.parties-list.js @ parties-list.ts:6fileEvaluate @ install.js:153require @ install.js:82meteorInstall.client.imports.parties-list.parties-list.ts @ parties-list.ts:1fileEvaluate @ install.js:153require @ install.js:82meteorInstall.client.app.js @ app.ts:6fileEvaluate @ install.js:153require @ install.js:82(anonymous function) @ parties.ts:22

The referenced meteor/accounts-base module is a direct dependency of the accounts-password package. Step 8 of the Socially - A Meteor-Angular Tutorial App tutorial requires the installation of the accounts-password package, which will in turn install the accounts-base package. Make sure you've run the following:

meteor add accounts-password

To make sure it's installed, look in your .meteor/versions file for a matching accounts-base@XXX line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM