Dynamic Component #1041
-
The guide explains:
<script>
export default {
mounted() {
import('./lib-that-access-window-on-import').then((module) => {
// use code
})
}
}
</script> When the library is directly referenced (instead of a dependency), the load fails. Is this the expected behaviour? If so, the docs could mention that.
<script>
export default {
mounted() {
import('https://cdn.skypack.dev/mermaid').then((module) => {
// use code
})
}
}
</script> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I am not getting any error with your code. Can you instead create an issue and give us a reproducible example? |
Beta Was this translation helpful? Give feedback.
-
Solved as part of #1042 |
Beta Was this translation helpful? Give feedback.
Solved as part of #1042