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] Server and Client modules are not sync

See original GitHub issue

Hi, I setup this library with SSR and currently I’m doing code-splitting for redux reducer based on this solution. But I encounter an error as following:

2018-02-11 2 47 56

BTW, if I remove the loadComponents().then( ... ) from my client.js the error gone but another error occurs as following:

2018-02-11 2 59 16

Any suggestion for it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Mar 24, 2018

I think I could make it possible by adding a require.resolveWeak('./Bar') like React Loadable does. But right now I do not want to couple it with Webpack.

I will give you a solution, you can do it if you want:

The loadableState you get has a tree properties, the solution for you is to walk the tree and try to get the full path of the module.

If you got the full path of the module, you can easily load it client side.

The actual problem is that you only get the relative path of the module, so you can’t tell to Webpack “Load my module”. Do you see the problem?

0reactions
wellyshencommented, Mar 24, 2018

Okay, I will survey it when I have time and ask you questions about it man 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: server read error causes the client sync to be ... - GitHub
Bug description​​ the client stopped syncing due to a server read error in a directory, which is perfectly accessible via WEB interface. it...
Read more >
Troubleshoot sync health and errors in Azure File Sync
Troubleshoot common issues with monitoring sync health and resolving sync errors in an Azure File Sync deployment.
Read more >
Troubleshooting General Sync Errors - IBM
Fixes for common Sync issues. The Sync client displays failure to start sync error. When the async binary on the remote computer cannot...
Read more >
Sage 100 Sync Error - The file (ModuleName) is being used ...
The sync tool is being blocked from connecting to modules in Sage 100. ... we've asked client to restart their Sage server to...
Read more >
SAM client 2110 is not able to sync with SAP Asset Manager ...
tns.NativeScriptException: Failed to find module: "tns-core-modules/application", relative to : app/tns_modules/; Initial sync failed. Errors ...
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