Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
Forward.svelte
Component.svelte
<script>
import Forward from './Forward.svelte';
</script>

<Forward>
<span>
lol
</span>
</Forward>

Error compiling component

WebAssembly.instantiateStreaming(): value type opcode @+13
/* App.svelte generated by Svelte v3.29.3 */
import {
SvelteComponent,
create_component,
destroy_component,
detach,
element,
init,
insert,
mount_component,
safe_not_equal,
transition_in,
transition_out
} from "svelte/internal";

import Forward from "./Forward.svelte";

function create_default_slot(ctx) {
let span;

return {
c() {
span = element("span");
span.textContent = "lol";
},
m(target, anchor) {
insert(target, span, anchor);
},
d(detaching) {
if (detaching) detach(span);
}
};
}

function create_fragment(ctx) {
let forward;
result = svelte.compile(source, {
generate: ,
});
/* Add a <style> tag to see the CSS output */
		
			
				
  • {
    • html: Fragment {...}
      • start: 61
      • end: 104
      • type: "Fragment"
      • children: [...] (2)
        • Text {...}
          • start: 59
          • end: 61
          • type: "Text"
          • raw: "\n\n"
          • data: "\n\n"
          }
        • InlineComponent {...}
          • start: 61
          • end: 104
          • type: "InlineComponent"
          • name: "Forward"
          • attributes: []
          • children: [...] (3)
            • Text {...}
              • start: 70
              • end: 72
              • type: "Text"
              • raw: "\n\t"
              • data: "\n\t"
              }
            • Element {...}
              • start: 72
              • end: 93
              • type: "Element"
              • name: "span"
              • attributes: []
              • children: [...] (1)
                • Text {...}
                  • start: 78
                  • end: 86
                  • type: "Text"
                  • raw: "\n\t\tlol\n\t"
                  • data: "\n\t\tlol\n\t"
                  }
                ]
              }
            • Text {...}
              • start: 93
              • end: 94
              • type: "Text"
              • raw: "\n"
              • data: "\n"
              }
            ]
          }
        ]
      }
    • css: undefined
    • instance: Script {...}
      • type: "Script"
      • start: 0
      • end: 59
      • context: "default"
      • content: Program {...}
        • type: "Program"
        • start: 8
        • end: 50
        • loc: {...}
          • start: {...}
            • line: 1
            • column: 0
            }
          • end: {...}
            • line: 3
            • column: 0
            }
          }
        • body: [...] (1)
          • ImportDeclaration {...}
            • type: "ImportDeclaration"
            • start: 10
            • end: 49
            • loc: {...}
              • start: {...}
                • line: 2
                • column: 1
                }
              • end: {...}
                • line: 2
                • column: 40
                }
              }
            • specifiers: [...] (1)
              • ImportDefaultSpecifier {...}
                • type: "ImportDefaultSpecifier"
                • start: 17
                • end: 24
                • loc: {...}
                  • start: {...}
                    • line: 2
                    • column: 8
                    }
                  • end: {...}
                    • line: 2
                    • column: 15
                    }
                  }
                • local: Identifier {...}
                  • type: "Identifier"
                  • start: 17
                  • end: 24
                  • loc: {...}
                    • start: {...}
                      • line: 2
                      • column: 8
                      }
                    • end: {...}
                      • line: 2
                      • column: 15
                      }
                    }
                  • name: "Forward"
                  }
                }
              ]
            • source: Literal {...}
              • type: "Literal"
              • start: 30
              • end: 48
              • loc: {...}
                • start: {...}
                  • line: 2
                  • column: 21
                  }
                • end: {...}
                  • line: 2
                  • column: 39
                  }
                }
              • value: "./Forward.svelte"
              • raw: "'./Forward.svelte'"
              }
            }
          ]
        • sourceType: "module"
        }
      }
    • module: undefined
    }
The AST is not public API and may change at any point in time