Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack 5 sur error and chunk files error (Public url) #660

Closed
joacub opened this issue Nov 11, 2020 · 4 comments
Closed

Webpack 5 sur error and chunk files error (Public url) #660

joacub opened this issue Nov 11, 2020 · 4 comments

Comments

@joacub
Copy link

joacub commented Nov 11, 2020

🐛 Bug Report

WEBPACK 5 SSR

Issues without a reproduction link are likely to stall.

Run npx envinfo --system --binaries --npmPackages @loadable/component,@loadable/server,@loadable/webpack-plugin,@loadable/babel-plugin --markdown --clipboard

Paste the results here:

 - OS: macOS 10.15.7
 - CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
 - Memory: 104.83 MB / 16.00 GB
 - Shell: 5.7.1 - /bin/zsh
## Binaries:
 - Node: 15.1.0 - ~/.nvm/versions/node/v15.1.0/bin/node
 - Yarn: 1.22.4 - /usr/local/bin/yarn
 - npm: 7.0.8 - ~/.nvm/versions/node/v15.1.0/bin/npm
## npmPackages:
 - @loadable/babel-plugin: ^5.13.2 => 5.13.2 
 - @loadable/component: ^5.14.1 => 5.14.1 
 - @loadable/server: ^5.14.0 => 5.14.0 
 - @loadable/webpack-plugin: ^5.14.0 => 5.14.0 

ERROR

loadable-components: failed to synchronously load component, which expected to be available {
fileName: './src/components/Admin/Header.js',
chunkName: 'admin-header',
error: "Cannot access 'WEBPACK_DEFAULT_EXPORT' before initialization"
}
MOUNT ERROR: ReferenceError: Cannot access 'WEBPACK_DEFAULT_EXPORT' before initialization

@open-collective-bot
Copy link

Hey @joacub 👋,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use Loadable at work, you can also ask your company to sponsor us ❤️.

@theKashey
Copy link
Collaborator

👉 #636

@ajayjaggi
Copy link

@joacub when on client side, is loadableReady getting called ??

@joacub
Copy link
Author

joacub commented Nov 13, 2020

@joacub when on client side, is loadableReady getting called ??

That error in on server side render, loadableready never finish the call got stcuk becouse is getting the chunks from the server instead the client chunks...

@joacub joacub closed this as completed Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants