yarn add firebase-admin
をして、export const admin = require('firebase-admin')
と読み込んだら大量エラー発生
front_1 | To install them, you can run: npm install --save child_process dns fs http2 net tls
front_1 | ℹ Waiting for file changes
front_1 | ℹ Memory usage: 293 MB (RSS: 431 MB)
front_1 | ↻ Updated plugins/firebase.js
front_1 | ℹ Compiling Client
front_1 | ✔ Client: Compiled with some errors in 2.14s
front_1 |
front_1 | WARN Compiled with 2 warnings
front_1 |
front_1 |
front_1 | WARN in ./node_modules/hash-stream-validation/index.js
front_1 |
front_1 | Module not found: Error: Can't resolve 'fast-crc32c' in '/shared/front/node_modules/hash-stream-validation'
front_1 |
front_1 |
front_1 | WARN in ./node_modules/configstore/node_modules/write-file-atomic/index.js
front_1 |
front_1 | Module not found: Error: Can't resolve 'worker_threads' in '/shared/front/node_modules/configstore/node_modules/write-file-atomic'
front_1 |
front_1 |
front_1 | ERROR Failed to compile with 23 errors
以下でも解決出来ず。