首先,这是这里的后续问题:
\n其次,我只是在终端中收到这些错误。我对 Angular 并不陌生,但对 FireStore 和 Firebase 很陌生:)
\n我第一次使用 Firebase 创建了一个帐户,我认为我正确地复制了所有 api 内容,当我查看 VsCode 时,没有出现任何问题。但是,我想知道为什么本地主机中没有显示任何内容...所以我查看了我的终端、命令行,这些是显示的一些错误。
\n这是我采取的一些步骤:
\n但后来我仍然遇到同样的错误!
\n\nBuild at: 2021-07-19T15:14:31.757Z - Hash: 1d1a58a540ce70023842 - Time: 20427ms\n\nWarning: D:\\WEBSITES\\Projects\\clientpanel\\node_modules\\angularfire2\\node_modules\\@angular\\fire\\__ivy_ngcc__\\es2015\\firebase.app.module.js depends on \'firebase/app\'. CommonJS or AMD dependencies can cause optimization bailouts.\nFor more info see: https://angular.io/guide/build#configuring-commonjs-dependencies\n\nWarning: D:\\WEBSITES\\Projects\\clientpanel\\node_modules\\firebase\\firestore\\dist\\index.esm.js depends on \'@firebase/firestore\'. CommonJS or AMD dependencies can cause optimization bailouts.\nFor more info see: https://angular.io/guide/build#configuring-commonjs-dependencies\n\nWarning: D:\\WEBSITES\\Projects\\clientpanel\\src\\app\\app.module.ts depends on \'angularfire2\'. CommonJS …Run Code Online (Sandbox Code Playgroud) 输出是
{$questions[i]}
Run Code Online (Sandbox Code Playgroud)
它没有提出我的第一个问题!
这是代码:
var questions = [
"What is your name?",
"What is your favorite fruit?",
"What is the meaning of life?"
];
var answers = [];
function ask(i){
process.stdout.write(`\n\n {$questions[i]} \n\n `);
process.stdout.write(" > ");
}
ask(0);
Run Code Online (Sandbox Code Playgroud)
我错过了什么?