Failed to compile
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- firebase, google-cloud, javascript, nextjs
- Domain
- databases, full-stack
Research direction
Reproduce the failure by following the Firebase Next.js codelab through Step 5 and opening localhost:5000. Start with src/components/RestaurantListings.jsx, then trace the imports through src/lib/firebase/firebase.js and src/lib/firebase/firestore.js to the farmhash error in the stack trace. Done means the home page loads without the binary module parse error.
Written by the indexing model from the issue text.
Description
I follow the steps in the [Integrate Firebase with a Next.js app](https://firebase.google.com/codelabs/firebase-nextjs#0). Everything works fine up to and including Step 5: Start the Hosting emulator. I get the "All emulators ready! It is now safe to connect your app." message. When I navigate to http://localhost:5000, instead of the home page, I get an error message:
./node_modules/farmhash/build/Release/farmhash.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Here is the stack trace:
./node_modules/google-gax/build/src/streamingRetryRequest.js
./node_modules/google-gax/build/src/streamingCalls/streaming.js
./node_modules/google-gax/build/src/fallback.js
./node_modules/@google-cloud/firestore/build/src/index.js
./node_modules/firebase-admin/lib/app/firebase-namespace.js
./node_modules/firebase-admin/lib/default-namespace.js
./node_modules/firebase-admin/lib/index.js
./src/lib/firebase/firebase.js
./src/lib/firebase/firestore.js
./src/components/RestaurantListings.jsx
I reported this error to the firebase-tools team but they believe it is an application error.
- Dominant language
- JavaScript
- Stars
- 597
- Forks
- 456
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/friendlyeats-web
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
firebase/friendlyeats-web#340 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/friendlyeats-web#359 ·
-
جدید Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
firebase/friendlyeats-web#352 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/friendlyeats-web#337 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
firebase/friendlyeats-web#336 ·
All issues in firebase/friendlyeats-web
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·