-
Notifications
You must be signed in to change notification settings - Fork 75
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
[bug] Render async fragment error (lasso-slot:body). #256
Comments
Hey, @SandeepVattapparambil. I'm going to need a bit more information in order to help you. What version of Lasso are you using? Are you using marko-starter? Is this happening when you run a build? If it's coming from a component, perhaps you could isolate the issue and post a code sample. Thanks. |
I am using marko "^4.7.0" and lasso "^2.11.21". |
This problem persists on lasso version above ^2.11.21 and not on 2.11.21 and below |
@SandeepVattapparambil Can you try upgrading to the latest |
I'm also running into this issue. Using marko-starter. Still an issue with all packages at the latest version. Occurs when using any lasso plugins, e.g. module.exports = require('marko-starter').projectConfig({
lassoConfig: {
plugins: [
'lasso-marko',
'lasso-stylus',
],
},
}); The relevant part of my package.json "dependencies": {
"marko": "^4.7.4",
},
"devDependencies": {
"lasso-marko": "^2.4.0",
"lasso-postcss": "^0.1.1",
"marko-starter": "^2.0.2",
}, Here's my actual project.jsconst isProduction = process.env.NODE_ENV === 'production';
module.exports = require('marko-starter').projectConfig({
name: 'pro-auth',
lassoConfig: {
bundlingEnabled: isProduction,
fingerprintsEnabled: isProduction,
minifyJS: isProduction,
minifyCSS: isProduction,
plugins: [
'lasso-marko',
{
plugin: 'lasso-postcss',
config: {
// plugins: [],
// options: {},
// extensions: [],
sourceMaps: true,
},
},
],
},
}); Full error stacktrace
|
After debugging a some more, this bug only happens when a .marko file has
Possibly also related to this, if a .marko file as a |
After more playing around I've found it's only an issue in routes but not components. Perhaps I'm misunderstanding how routes work (using marko-starter) but since the file names end with Not sure if this is the correct place for my issue anymore. Please let me know if there's a more appropriate place to open an issue. |
@austinkelleher I'm encountering this bug as well with anything after the hydrate update in [email protected] Working versions: The error is quite simple, in my case:
I'll see if I can't track down more of what is happening. |
@ianvonholt any update on this issue? I am facing the same problem. |
+1 Guys. |
Sorry @VSJ, I haven't had time to investigate. Priorities at work shifted away from newer Marko and Lasso version support. |
Try to update lasso to the new version manually. |
I have the same issue( |
I received this error in marko-starter. The advice from this article works for me. Just update
to
and rerun npm install. |
@jacobgoh101 Perfect! I've been looking for this solution for a long time. |
Exception has occurred: Error
Error: Render async fragment error (lasso-slot:body). Exception: Error: Async fragment (lasso-slot:body) timed out after 30000ms
at Timeout._onTimeout (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/html/AsyncStream.js:193:32)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
Creation stack trace: Error
at AsyncStream.beginAsync (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/html/AsyncStream.js:188:55)
at render (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/lasso/taglib/slot-tag.js:94:28)
at render (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/lasso/taglib/body-tag.js:10:5)
at wrappedRenderer (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/helpers.js:106:13)
at render (/Users/sandeep/Desktop/web.sdk/sdk-revamp/src/components/app-main/index.marko.js:46:3)
at renderer (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/components/renderer.js:186:9)
at wrappedRenderer (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/helpers.js:106:13)
at render (/Users/sandeep/Desktop/web.sdk/sdk-revamp/src/templates/product/index.marko.js:29:3)
at renderer (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/components/renderer.js:186:9)
at safeRender (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/renderable.js:6:9)
at AsyncStream.error (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/html/AsyncStream.js:429:13)
at Timeout._onTimeout (/Users/sandeep/Desktop/web.sdk/sdk-revamp/node_modules/marko/src/runtime/html/AsyncStream.js:193:26)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
The text was updated successfully, but these errors were encountered: