0
I am trying to make a web application with Flutter Web and in my file index.html
pasted the script indicated by google firebase, but when I run the application, it runs for hours "compaling lib\main.dart for the web
". The application is not composed, in Chrome there is only one tab without content.
Obs:
Applications without firebase run perfectly;
I am running the application in profile mode in VS Code and my device is "Chrome(Avascript)";
I’m not using firebase hosting, I’m using a localhost.
code of my index.html inside the body tag:
<script src="https://www.gstatic.com/firebasejs/7.16.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.16.1/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.0/firebase-firestore.js"></script>
<script>
var firebaseConfig = {
apiKey: ...,
authDomain: ...
databaseURL: ...,
projectId: ...,
storageBucket: ...,
messagingSenderId: ...,
appId: ...,
measurementId: ...
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
This would be some configuration error?
If you can’t find a solution, you could send me a link from a tutorial to configure flutter and firebase?
Help me please!
ok, I’ll test here. It’s normal if the application takes considerable time?
– Luan
@Luan what would be a "considerable time"? Each one has a different PC, there will be different compilation times... If it’s like you said "Keep compiling for hours" then it’s a problem, it’s not normal.
– Matheus Ribeiro