Skip to content

Commit

Permalink
debug(firebase): import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kamar committed Dec 13, 2023
1 parent 77355c5 commit 7b177aa
Show file tree
Hide file tree
Showing 15 changed files with 9,050 additions and 2,351 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

7 changes: 0 additions & 7 deletions .babelrc.js

This file was deleted.

10 changes: 7 additions & 3 deletions firebase.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { initializeApp } from 'firebase/app';
import { getApps, getApp, initializeApp } from 'firebase/app';
import { getFirestore } from 'firebase/firestore/lite';
import type { Firestore } from 'firebase/firestore/lite';

Expand All @@ -11,10 +11,14 @@ const firebaseConfig = {
appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID
};

console.log('firebaseConfig → ', firebaseConfig)
// console.log('firebaseConfig → ', firebaseConfig)

// const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();

// const app = initializeApp(firebaseConfig);
// const app = !firebase.apps.length ? firebase.initializeApp(firebaseConfig) : firebase.app();
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();

const app = initializeApp(firebaseConfig);
export default app;

// export const db: Firestore = getFirestore(app);
Expand Down
23 changes: 23 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,27 @@ module.exports = withLess({
additionalData: content =>
`${content}\n\n@import '${pathToLessFileWithVariables}';`,
},
transpilePackages: [
"antd",
"rc-util",
"@babel/runtime",
"@ant-design/icons",
"@ant-design/icons-svg",
"rc-pagination",
"rc-picker",
"rc-tree",
"rc-table",
],
});


// const nextConfig = {
// transpilePackages: [
// "antd",
// "@babel/runtime",
// "@ant-design/icons",
// "@ant-design/icons-svg",
// ],
// };

// module.exports = nextConfig;
Loading

0 comments on commit 7b177aa

Please sign in to comment.