Create modules from strings
See original GitHub issueDescribe the bug The examples show that we can use createSFCModule, however I’m only able to use loadModule.
To Reproduce Steps to reproduce the behavior:
- Add the latest
vue3-sfc-loader
to the<head>
. - Add a script tag with
const { createSFCModule } = window["vue3-sfc-loader"];
- Try to use the function.
- See the error (createSFCModule is undefined):
Uncaught TypeError: createSFCModule is not a function
Expected behavior
createSFCModule
should create a new component from a single file component source string.
Desktop (please complete the following information):
- OS: Manjaro Linux
- Browser: Firefox
- Version: 83
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Python String Module | DigitalOcean
Python string module contains a single utility function - capwords(s, sep=None). This function split the specified string into words using str.
Read more >import module from string variable - python - Stack Overflow
I'm writing Python script which I hope will automate document generation from future MPL releases. I selected interested submodules/packages and ...
Read more >module-from-string - npm
Load module from string using require or import. ... Start using module-from-string in your project by running `npm i module-from-string`.
Read more >string Module - Real Python
In this section, you'll learn all about Python's standard library. Let's start with the string module. The string module is really helpful when...
Read more >6. Modules — Python 3.11.1 documentation
Within a module, the module's name (as a string) is available as the value ... For instance, use your favorite text editor to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In order to avoid new issues like “my styles do not work” I will definitively keep
addStyle()
mandatory but the error will be clearer. BTW, you can defineaddStyle
with() => {}
Ah thanks, can you correct this example or make it optional? https://github.com/FranckFreiburger/vue3-sfc-loader#using-another-template-language-pug.