Skip to content

Update messaging.ts #1939

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

Closed
wants to merge 4 commits into from
Closed

Update messaging.ts #1939

wants to merge 4 commits into from

Conversation

JeMeister
Copy link

@JeMeister JeMeister commented Oct 25, 2018

Checklist

Issue number for this PR: #1938 (required)
Docs included?: no (yes/no; required for all API/functional changes)
Test units included?: no (yes/no; required)
In a clean directory, yarn install, yarn test run successfully? yes (yes/no; required)

Description

This resolves the error using messaging. Now, it is calling firebase/messaging correctly using require().

Fix a breaking bug. It's not calling firebase/messaging correctly.
Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your build configuration that this is failing? It's behind the browser check + a ts-ignore. Do you have an addition lint check?

@JeMeister
Copy link
Author

JeMeister commented Nov 6, 2018

@jamesdaniels the error is not building the application, the application breaks when it's running and it calls Messaging.

He has the same problem: #1938 (comment)

Copy link
Author

@JeMeister JeMeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using import() breaks the application. With require() the application works correctly.

@JeMeister
Copy link
Author

The error was solved deleting the folder node_modules/@angular and installing again.

@JeMeister JeMeister closed this Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants