question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade dialog-polyfill to 0.5 to support ES module imports

See original GitHub issue

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu 19.10
  • Browser version: Chrome 81
  • Firebase UI version: 4.4.0
  • Firebase SDK version: 7.8.2

[REQUIRED] Describe the problem

firebaseui tries to import the default export of dialog-polyfill, only available in v0.5. But firebaseui 4.4 depends on 0.4.x

Steps to reproduce:

Use es-dev-server to load a boilerplate web app use relevant code below

Relevant Code:

import firebase from "firebase/app";
import "firebase/auth";
import * as firebaseui from 'firebaseui';

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
christian-valadezcommented, Oct 15, 2021

any updates on this? This means firebaseui doesn’t work with any apps built on Vite 😦

2reactions
JosefJezekcommented, Oct 17, 2020

This critical bug is very old without any fix from Feb 15 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade your Node app: From CommonJS to ES Modules
4) Fix imports and exports. As already mentioned—Both modules systems are different. It's impossible to convert all files automatically. While ...
Read more >
dialog-polyfill - npm
include dialog-polyfill.js script directly in your HTML, which exposes a global dialogPolyfill function. · import (es modules) · require (commonjs ...
Read more >
JavaScript - Parcel
ES modules. #. ES module syntax is the standard way to import and export values between files in JavaScript. It should be preferred...
Read more >
ECMAScript modules | Node.js v19.3.0 Documentation
Dynamic import() is supported in both CommonJS and ES modules. ... Live binding updates or new exports added to module.exports are not detected...
Read more >
Documentation - TypeScript 4.7
Around TypeScript 4.5 we rolled out nightly-only support for ESM in Node.js to ... When a .ts file is compiled as an ES...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found