docs icon indicating copy to clipboard operation
docs copied to clipboard

tutorial/step-1: Error message shown when SFC is enabled (default)

Open tvogel opened this issue 3 years ago • 2 comments

Is this because of me using Firefox?

grafik

In English this would roughly read

Error while resolving module specifier "vue". Relative module specifiers have to start with "./", "../" or "/".

tvogel avatar Nov 16 '22 20:11 tvogel

Possibly the same as #2073. There's a polyfill being used to get the import map to work with Firefox, but that seems to be failing in some cases.

skirtles-code avatar Nov 17 '22 04:11 skirtles-code

I think this may be a problem with the REPL:

https://github.com/vuejs/repl/blob/4af73cb41c716f0bcb4f8b14d643d2417534197a/src/output/srcdoc.html#L106

It's trying to suppress that error message, but it only works in English.

I also found a couple of other examples of code that relies on English error messages:

https://github.com/vuejs/repl/blob/4af73cb41c716f0bcb4f8b14d643d2417534197a/src/output/Preview.vue#L103

skirtles-code avatar Dec 31 '22 02:12 skirtles-code