Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

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: [email protected]

Firebase: [email protected] as imported by firepad module

Ace: [email protected] 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants