firepad icon indicating copy to clipboard operation
firepad copied to clipboard

firebase is not defined

Open toasterpic opened this issue 4 years ago • 1 comments

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 https://github.com/FirebaseExtended/firepad/issues/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

toasterpic avatar Apr 23 '20 11:04 toasterpic

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

prateekjain07 avatar Sep 15 '22 19:09 prateekjain07