shalomscott / eleventy-plugin-embed-svelte

An Eleventy plugin that makes embedding Svelte components in your static pages painfully easy.
https://shalomscott.github.io/eleventy-plugin-embed-svelte/
MIT License
40 stars 4 forks source link

Can't find variable: internal #5

Closed colinaut closed 3 years ago

colinaut commented 3 years ago

Tried using this on an 11ty site I'm building and it didn't work. Then tried to use it on a bare bones 11ty basically copying your example and it also failed with the same error.

It builds but with the following error:

'svelte/internal' is imported by svelte/Greeter.svelte, but could not be resolved – treating it as an external dependency
No name was provided for external module 'svelte/internal' in output.globals – guessing 'internal'

Then when I load it in the browser I get Can't find variable: internal error in the browser console.

colinaut commented 3 years ago

I uploaded the simple test to this repo here

shalomscott commented 3 years ago

Hi, I am not experiencing the issue you're describing. Did you make sure to npm install the svelte package? svelte is a peerDependency of this plugin. I'm going to mark this as closed for now.