`require` resolves to wrong module
See original GitHub issue🐛 bug report
When bundled with Parcel, a firebaseui
require resolves to dialog-polyfill instead. This only happens with Parcel. I haven’t been able to repro with Webpack or plain Node.
I haven’t encountered this with any other modules yet and don’t know what’s special about those modules. I’ve filed an issue withfirebaseui
here (https://github.com/firebase/firebaseui-web/issues/618), but since I can’t repro with Webpack, I suspect firebaseui
exposes some edge case where Parcel is doing something it’s not supposed to do.
🎛 Configuration (.babelrc, package.json, cli command)
Just import firebase
and firebaseui
and require('firebaseui')
. See minimal repro below.
🤔 Expected Behavior
require('firebaseui')
should return an object with an auth
property.
😯 Current Behavior
It returns an object that looks like the output of require('dialog-polyfill')
.
💻 Code Sample
Minimal repro here: https://github.com/fongandrew/parcel-firebaseui
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 1.12.3 |
Node | 10.8.0 |
npm/Yarn | 6.2.0 |
Operating System | Windows 10 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5
FYI: My PR for FirebaseUI was just merged, so it should be fixed in the next release! This ticket can be closed!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.