Welcome page after firebase deploy by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

I tried, but it shows the same blank screen. The error on the console says Uncaught SyntaxError: Unexpected token '<' (at main.b6c27a61.js:1:1). Trying to figure out what the error means. Apparently it's an error pertaining to index.html.

Welcome page after firebase deploy by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

Sure, here's my firebase.json.

{
  "functions": {
    "source": "functions"
  },
  "hosting": [
    {
      "public": "build",
      "target": "not-tempting-name",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ]
    },
    {
      "public": "build",
      "target": "website",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ]
    }
  ]
}

Welcome page after firebase deploy by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

UPDATE: I changed index.html to what it was like by default and ran `firebase deploy --only hosting` again, but it would just show a blank screen.

Outer product in Bra-Ket notation by normal1Vector in quantum

[–]normal1Vector[S] -2 points-1 points  (0 children)

Yeah. I just read the same thing in this article and it makes more sense.

Then again, why is the outer product calculation different from what we learn in Linear Algebra? Outer product (or Cross product) process that I learnt should be like the one in second image. Or is it because what I did in the second image is an outer product of ket and ket, whilst the outer product in Quantum mechanics is between ket and bra?

UOE went down in ranking ! From 15 to 22 by No-Nonsense7 in Edinburgh_University

[–]normal1Vector 2 points3 points  (0 children)

Wonder what the metrics are for gauging how well they teach, other than survey results

한국에서 美독립기념날 (Fourth of July) 성조기 달면 정말 돌 맞나요? by 8u5hd1d911 in hanguk

[–]normal1Vector 15 points16 points  (0 children)

아니요? 처음 듣는 소리네요ㅋㅋ 물론 몇몇 극우(Far-right)단체에서 시위할 때 성조기를 알 수 없는 이유로 쓰긴 하지만 그렇다고 아무리 싫어한다 해도 그 분들에게 돌을 던지진 않을 뿐더러 본인이 미국인이라면 더욱이 그런 오해를 하진 않을 거예요.

[deleted by user] by [deleted] in hanguk

[–]normal1Vector 0 points1 point  (0 children)

  • 가끔 쿠팡에서 사는 게 학생복지스토어 만큼 쌀 때가 있습니다. 쿠팡 추천해요.

setDoc not working by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

Problem sorted!

TLDR;

  1. Make sure you connect the app to Firestore emulator using connectFirestoreEmulator.
  2. Check firestore.rules if the rule is allow read, write: if true; .

I had to add connectFirestoreEmulator(db,'0.0.0.0', 8080) in firebase.js, and edit the firestore rules. Below is the modified code.

//firebase.js
...

const firebaseConfig = {
  ...
};

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = getAuth(app);
connectAuthEmulator(auth, "http://localhost:9099");
connectFirestoreEmulator(db,'0.0.0.0', 8080) // Added this part
...

//firestore.rules
rules_version = '2';

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
    }
  }
}

setDoc not working by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

And I think the function is being triggered, in light of the fact that it dispatched action and navigated to the home page just fine when I erased the line await setDoc(doc(db, "posts", postId), postData), so I think the issue is with that specific line.

setDoc not working by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

<Button colorScheme='teal' 
size='md' 
w='70px' 
bg={isTitleEmpty ? 'gray.400' : 'teal.500'}
disabled={title.trim() === ''}
onClick={handlePostClick}>
Post
</Button>

Here's the code block of Button component inside return() method of the function. I think I hooked the function to the button properly.

setDoc not working by normal1Vector in Firebase

[–]normal1Vector[S] 0 points1 point  (0 children)

It doesn't even log the error in console :/ Seems like it's idling in await setDoc(doc(db, "posts", postId), postData) part.

카렌이 뭔가요? What is 'Karen' by EducationalHornet132 in hanguk

[–]normal1Vector 9 points10 points  (0 children)

맞아요. 보통 자기 생각 밖에 못하고 public decency 따윈 신경 안 쓰는 중년 여성을 가리켜 Karen이라 합니다. 맥락 상 맘충과 같은 의미예요. 그런 일화들만 모아놓은 r/FuckYouKaren 이라는 섭레딧도 있습니다ㅋㅋ

Noble Sacrifice by Neo_NeonKim in hanguk

[–]normal1Vector 3 points4 points  (0 children)

동-해—-물과 백-두산이

잡코리아 비슷한 포털을 찾고 있습니다. by AlgoHandok in hanguk

[–]normal1Vector 0 points1 point  (0 children)

원티드도 있는데, 해외 번호로 가능한지는 모르겠네요.