firebase cloud functionsのセットアップをデプロイ前まで一通り終えたので、最後にデプロイしたいのですができません。
私のターミナルの場合、
i functions: preparing...までは表示され
✔ Deploy complete!となっていますが、
参考にしてる画像にあるようなその下の
I functions: packaged...からI functions: creating...までが表示されていません。
この表示がないということはデプロイできないのでしょうか?
あと、firebaseページのfunctionsダッシュボードで、
手順通りにコマンド入力しても[最初のデプロイを待機しています]とあり続けまた手順のやり直しになります。
セットアップのどの場面が抜けているのかわかりません。教えていただきたいです。
(追記です)
上記の画像は、この動画のスクショで、動画の最終的なターミナル処理の様子です。
この動画の手順通りセットアップを最終的なところまで進めています。
セットアップを進める前に、firebaseにプロジェクトを追加しています。
ですが、(iosアプリにfirebaseを追加) の最後のステップ⑤『アプリを実行してインストールを確認』 がずっとグルグルと確認中のままです。
????(追記です)
ターミナルの表示です
Last login: Thu Dec 6 13:08:45 on ttys000 -bash: eval: line 21: syntax error: unexpected end of file hogeMacBook-Pro:~ hoge$ cd firecast/ hogeMacBook-Pro:firecast hoge$ firebase login ? Allow Firebase to collect anonymous CLI usage and error reporting information? Yes Visit this URL on any device to log in: ここにURLがありました Waiting for authentication... ✔ Success! Logged in as メールアドレス hogeMacBook-Pro:firecast hoge$ firebase init ######## #### ######## ######## ######## ### ###### ######## ## ## ## ## ## ## ## ## ## ## ## ###### ## ######## ###### ######## ######### ###### ###### ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ######## ######## ## ## ###### ######## You're about to initialize a Firebase project in this directory: /Users/hoge/firecast ? Which Firebase CLI features do you want to setup for this folder? Press Space to select features, then Enter to confirm your choices. Functions: Configure and deploy Cloud Functions === Project Setup First, let's associate this project directory with a Firebase project. You can create multiple project aliases by running firebase use --add, but for now we'll just set up a default project. ? Select a default Firebase project for this directory: プロジェクト名 (プロジェクト名) i Using project プロジェクト名 (プロジェクト名) === Functions Setup A functions directory will be created in your project with a Node.js package pre-configured. Functions can be deployed with firebase deploy. ? What language would you like to use to write Cloud Functions? TypeScript ? Do you want to use TSLint to catch probable bugs and enforce style? Yes ✔ Wrote functions/package.json ✔ Wrote functions/tslint.json ✔ Wrote functions/tsconfig.json ✔ Wrote functions/src/index.ts ✔ Wrote functions/.gitignore ? Do you want to install dependencies with npm now? Yes > grpc@1.16.1 install /Users/hoge/firecast/functions/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using request for node-pre-gyp https download [grpc] Success: "/Users/hoge/firecast/functions/node_modules/grpc/src/node/extension_binary/node-v59-darwin-x64-unknown/grpc_node.node" is installed via remote > protobufjs@6.8.8 postinstall /Users/hoge/firecast/functions/node_modules/protobufjs > node scripts/postinstall > firebase-functions@2.1.0 postinstall /Users/hoge/firecast/functions/node_modules/firebase-functions > node ./upgrade-warning ======== WARNING! ======== This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0. To see a complete list of these breaking changes, please go to: https://firebase.google.com/docs/functions/beta-v1-diff npm notice created a lockfile as package-lock.json. You should commit this file. added 514 packages in 19.997s ╭─────────────────────────────────────╮ │ │ │ Update available 5.5.1 → 6.4.1 │ │ Run npm i -g npm to update │ │ │ ╰─────────────────────────────────────╯ i Writing configuration info to firebase.json... i Writing project information to .firebaserc... i Writing gitignore file to .gitignore... ✔ Firebase initialization complete! hogeMacBook-Pro:firecast hoge$ code . -bash: code: command not found hogeMacBook-Pro:firecast hoge$ code . hogeMacBook-Pro:firecast hoge$ ls firebase.json functions hogeMacBook-Pro:firecast hoge$ cd functions hogeMacBook-Pro:functions hoge$ npm install firebase-admin@latest firebase-functions@latest > firebase-functions@2.1.0 postinstall /Users/hoge/firecast/functions/node_modules/firebase-functions > node ./upgrade-warning ======== WARNING! ======== This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0. To see a complete list of these breaking changes, please go to: https://firebase.google.com/docs/functions/beta-v1-diff npm WARN firebase-functions@2.1.0 requires a peer of firebase-admin@~6.0.0 but none is installed. You must install peer dependencies yourself. + firebase-functions@2.1.0 + firebase-admin@6.3.0 added 28 packages, removed 153 packages, updated 11 packages and moved 2 packages in 8.38s hogeMacBook-Pro:functions hoge$ firebase deploy === Deploying to ‘プロジェクト名’… i deploying functions Running command: npm --prefix "$RESOURCE_DIR" run lint > functions@ lint /Users/hoge/firecast/functions > tslint --project tsconfig.json WARNING: /Users/hoge/firecast/functions/src/index.ts[1, 1]: 'functions' is declared but its value is never read. Running command: npm --prefix "$RESOURCE_DIR" run build > functions@ build /Users/hoge/firecast/functions > tsc ✔ functions: Finished running predeploy script. i functions: ensuring necessary APIs are enabled... ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... ✔ Deploy complete! Project Console: https://console.firebase.google.com/project/プロジェクト名/overview hogeMacBook-Pro:functions hoge$
デプロイしたいソースコードです
//index.ts import * as functions from 'firebase-functions'; // Start writing Firebase Functions // https://firebase.google.com/docs/functions/typescript export const helloWorld = functions.https.onRequest((request, response) => { response.send("Hello from Firebase!"); });
回答1件
あなたの回答
tips
プレビュー