Build fail on nativescript 7
See original GitHub issueI have NS7 and everything is working properly, but when I try to build for release I get this error:
ERROR in node_modules/@nativescript/firebase/messaging/messaging.d.ts:1:10 - error TS2305: Module '"../firebase"' has no exported member 'Message'.
1 import { Message, MessagingOptions } from '../firebase';
~~~~~~~
node_modules/@nativescript/firebase/messaging/messaging.d.ts:1:19 - error TS2305: Module '"../firebase"' has no exported member 'MessagingOptions'.
1 import { Message, MessagingOptions } from '../firebase';
I am using the new @nativescript/firebase plugin, and have used the following import in app.component.ts:
import { firebase } from '@nativescript/firebase';
I have looked at the file in question (messaging.d.ts), and the intellisense is showing there is no exported member for Message or MessagingOptions, even though I can see them being exported in the firebase.d.ts file.
This is stopping me from being able to push a new version live. Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Troubleshooting - NativeScript Docs
Problem: After switching branches your app no longer builds, or does not display new changes. Solution: The NativeScript CLI generates platform-specific native ...
Read more >Native script : Build fails on iOS when migrating from 6.5 to ...
Native script : Build fails on iOS when migrating from 6.5 to 7.0 · 1. Using Xcode 11 - You need to use...
Read more >Update NativeScript 7 app to 8.0 - YouTube
Updating to NativeScript's latest version is easier than it may seem using ns migrate but there's a few things to check like your...
Read more >MDK Client local build error
At a first glance I would say that your computer might not have the appropriate NativeScript dependencies installed and that's causing your CLI ......
Read more >nativescript-community/sentry
A cross-platform application monitoring tool, with a focus on error reporting.. Latest version: 4.6.7, last published: 4 hours ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
None of the
nativescript.config.ts
things applied to mine, but adding"skipLibCheck": true
totsconfig.json
seems to have worked. I did think there must be an option for Typescript to ignore these false errors, and completely forgot about this option.Many thanks!
Replace:
import { Message } from "@nativescript/firebase";
with:
import { firebase } from "@nativescript/firebase";
And update the references to Message to be
firebase.Message
this work for me