NativeScript / NativeScript/firebase

Runtime Error with iOS

Open
#271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
62
Forks
53
Avg merge
8d 4h
Merged PRs (30d)
2

Description

I fixed the GRPC issues with the POD file fix but when I run it, I get this

Successfully synced application io.github.triniwiz.nativescript.firebasedemo on device 8063002D-1E9F-4AE2-A3A0-E127DA3C5496.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error:
Error calling module function
TypeError: (0 , nativescript_firebase_core__WEBPACK_IMPORTED_MODULE_2_.firebase) is not a function
File: (file: src/main.ts:12:2)
StackTrace:
./src/main.ts(file: src/main.ts:12:6)
at webpack_require(file: src/webpack/bootstrap:19:0)
at webpack_exec(file:///app/bundle.js:367:39)
at (file:///app/bundle.js:368:193)
at webpack_require.X(file: src/webpack/runtime/startup entrypoint:6:0)
at (file:///app/bundle.js:368:47)
at (file:///app/bundle.js:373:3)
at require(:1:232)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS runtime failure and inspect src/main.ts at line 12, where the firebase function from @nativescript-firebase/core is called. Check the generated bundle and the package's iOS setup around that import. Done means the demo launches without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.