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.

Error after upgrading @frontity/wp-source to 1.5.0

See original GitHub issue

Bug report

Describe the expected behavior getting the data from source as expected

Describe the observed behavior strange error appears in the console when navigating to any page

TypeError: Cannot read property 'func' of null
    at eval (actions.ts?f1c8:46)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (actions.ts:6)
    at _next (actions.ts:6)
    at eval (actions.ts:6)
    at new Promise (<anonymous>)
    at eval (actions.ts:6)
    at eval (actions.ts?f1c8:12)
    at Object.eval [as fetch] (create-store.js?81b0:27)
    at eval (actions.ts?fe69:18)

Describe the steps involved to reproduce the problem upgrade the wp-source by running this command npm install @frontity/wp-source@latest

Add info about your system

System:

  • OS: Windows 10 10.0.18362
  • CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz
  • Memory: 2.72 GB / 15.89 GB

Binaries:

  • Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
  • npm: 6.11.3 - C:\Program Files\nodejs\npm.CMD

Browsers:

  • Edge: 44.18362.449.0
  • Internet Explorer: 11.0.18362.1

npmPackages:

  • bootstrap: ^4.4.1 => 4.4.1
  • frontity: ^1.4.4 => 1.4.4
  • prop-types: ^15.7.2 => 15.7.2
  • react: ^16.12.0 => 16.12.0
  • react-slick: ^0.25.2 => 0.25.2
  • react-spinners: ^0.7.2 => 0.7.2
  • react-spring: ^8.0.27 => 8.0.27
  • slick-carousel: ^1.8.1 => 1.8.1

npmGlobalPackages:

  • frontity: Not Found
  • npx: Not Found

it was working will before updating to 1.5.0 to use REST API - Head Tags

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (17 by maintainers)

github_iconTop GitHub Comments

3reactions
SantosGuillamotcommented, Jan 16, 2020

Not sure if it’ll help in this case, but I had a similar problem and it was solved after deleting node_modules and the package-lock.json, and running npm install at the root again as explained here. If you haven’t done it yet, I guess it’d be a good idea to try this.

0reactions
SantosGuillamotcommented, Feb 28, 2020

Can you please take a look at our automations?

Sure, I guess that if a done issue is reopened it should go back to the to-do column, not to in-progress.

@SantosGuillamot my opinion is that we should fix this in this sprint because it is forcing people to remove node_modules and the package-lock.json each time they update Frontity.

Yes, I agree that if this is happening on every update, and it’s “breaking” Frontity, it should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help with First Time Frontity Quick Start Not Working
In a nut shell, I'm able to create a new Frontity project, but when I go to the “Start Development” step and run...
Read more >
Error during Plug-in Update - WordPress.org
I periodically see errors like the following when I use the Plugins page to update to the latest plugin versions. It doesn't happen...
Read more >
test code, not working (8c72ea68) · Commits - GitLab
Seems like you encountered an error. If this persists,. <a href="https://community.frontity.org"> let us know </a> or try refreshing.
Read more >
@frontity/wp-source - npm
A Frontity source package for the REST API of self-hosted and WordPress.com sites. Latest version: 1.11.7, last published: a year ago.
Read more >
wp-menu - CodeSandbox
This Sandbox is in sync with master on GitHub. You have to fork to make changes. Fork. Files. packages. README.md. favicon.ico. frontity.settings.js.
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