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.

loadComponents null

See original GitHub issue

Hi, I just upgraded to 1.0.0

and I got the following error:

Uncaught TypeError: Cannot read property 'then' of null
    at Object../src/index.js (index.js:13)
    at __webpack_require__ (bootstrap 9fe4b7230cd8077e37a9:707)
    at fn (bootstrap 9fe4b7230cd8077e37a9:112)
    at Object.0 (registerServiceWorker.js:117)
    at __webpack_require__ (bootstrap 9fe4b7230cd8077e37a9:707)
    at ./node_modules/@firebase/app/dist/esm/index.js.Object.defineProperty.value (bootstrap 9fe4b7230cd8077e37a9:805)
    at bundle.js:809

The offending line:

loadComponents().then(() => {

Please help, thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kikoaniscommented, Feb 3, 2018

Not sure if this change was necessary if (!state || !state.children)

You may not have a component that needs to be lazy loaded

0reactions
antonybudiantocommented, Feb 4, 2018

I’ve __LOADABLE_STATE__ on the html, but still error

@neoziro , I think this line didn’t check for empty object, the state is {} from my debug result

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - nullreferenceexception while creating window xaml
I have an issue in my WPF application, which essentially has 2 windows, a login window and a dashboard window and I get...
Read more >
Component loaders
Invokes callback(null) if none of the registered loaders know about this component. ... by the loadComponent function on your loader or any other...
Read more >
commonform-load-components
Start using commonform-load-components in your project by running `npm i ... callback(null, componentsCache[url] || false) }, put: function (url, component, ...
Read more >
platform/hardware/samsung_slsi/exynos5
static EXYNOS_OMX_COMPONENT *gLoadComponentList = NULL; ... loadComponent = Exynos_OSAL_Malloc(sizeof(EXYNOS_OMX_COMPONENT));.
Read more >
Application.LoadComponent Method (System.Windows)
An instance of the root element specified by the XAML file loaded. Exceptions. ArgumentNullException. resourceLocator is null. ArgumentException. The ...
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