Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21.12.04] 에러핸들링 - import 문법을 통해 모듈을 불러올 수 없음 (번들러 부재로 인한 오류) #23

Open
jacobways opened this issue Dec 4, 2021 · 0 comments

Comments

@jacobways
Copy link
Owner

jacobways commented Dec 4, 2021

문제 상황 및 에러 로그

  • 상황 : 공식문서에서 제공한 코드를 사용했으나, firebase app 모듈을 불러오지 못함
  • 에러메세지 : Uncaught TypeError: Failed to resolve module specifier "firebase/app". Relative references must start with either "/", "./", or "../".
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";

원인 및 해결방안

import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.6.0/firebase-app.js';
import { getAnalytics } from 'https://www.gstatic.com/firebasejs/9.6.0/firebase-analytics.js';
@jacobways jacobways changed the title [21.12.03] 에러핸들링 - import 문법을 통해 모듈을 불러올 수 없음 [21.12.03] 에러핸들링 - import 문법을 통해 모듈을 불러올 수 없음 (번들러 부재로 인한 오류) Dec 4, 2021
@jacobways jacobways changed the title [21.12.03] 에러핸들링 - import 문법을 통해 모듈을 불러올 수 없음 (번들러 부재로 인한 오류) [21.12.04] 에러핸들링 - import 문법을 통해 모듈을 불러올 수 없음 (번들러 부재로 인한 오류) Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant