I've searched everywhere and cannot find a solution to this problem:
var config = {
apiKey: "xxxxxxxx",
authDomain: "xxxxxxxxx",
databaseURL: "xxxxxxxxx",
projectId: "xxxxxxx",
storageBucket: "xxxxxxxxxx",
messagingSenderId: "xxxxxxxx"
};
firebase.initializeApp(config);
I am not using Angular nor node.js, just vanilla typescript in vscode, and no matter what I do, 'firebase' is always red lined, and name cannot be found. I followed the documentations and some youtube tutorials step by step several times and I'm just desperate right now. deploying works, no probs there...
I have also used this link in my html:
<script src="https://www.gstatic.com/firebasejs/5.5.5/firebase.js"></script>
And moving the given snippets between files doesn't help. what am I doing wrong?
I have found something odd. In chrome console, I am able to find 'firebase', it exists and imported from CDN, But it is not the same in VSCode as it still won't let me compile due to the missing name error.
Could it be related to my tsconfig?
Edit #2: I contacted firebase support and we are looking for a solution, I have to note that they have wonderful tech support, kudos. My theory now is that my VSCode .ts files are unable to import variables from files that are not .ts. Is this normal?