Skip to content
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

firebase is not defined #363

Open
toasterpic opened this issue Apr 23, 2020 · 1 comment
Open

firebase is not defined #363

toasterpic opened this issue Apr 23, 2020 · 1 comment

Comments

@toasterpic
Copy link

toasterpic commented Apr 23, 2020

Version info

Firepad: firepad@1.5.10

Firebase: firebase@7.14.1 as imported by firepad module

Ace: ng2-ace-editor@0.3.9 imports 1.4.11

Other (e.g. Node, browser, operating system) (if applicable): Angular 9.1.2 with matching angular-cli

Steps to reproduce and Test case

follow #296

Expected behavior

Firepad will be loaded and presented

Actual behavior

Webpack warns:

WARNING in ./node_modules/firepad/dist/firepad.min.js 1:36067-36074
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

that range translates to the block starting at dist/firepad.js#L2482

and at page load time:

Uncaught ReferenceError: firebase is not defined
    at firepad.min.js:1
    at firepad.min.js:1
    at firepad.min.js:1
    at Object../node_modules/firepad/dist/firepad.min.js (firepad.min.js:1)
    at __webpack_require__ (bootstrap:84)
    at Module../src/app/firepad/firepad.component.ts (firepad.component.ts:1)
    at __webpack_require__ (bootstrap:84)
    at Module../src/app/app.module.ts (app.module.ts:1)
    at __webpack_require__ (bootstrap:84)
    at Module../src/main.ts (main.ts:1)

at Column 17956

@prateekjain07
Copy link

@toasterpic - Hey, bud. Did you ever find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants