-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use scopes attribute ? #386
Comments
👋 hello, @xjArea
|
@chase-moskal Thank you for your reply. 🌹 <script async="async" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/es-module-shims.min.js"></script>
<script type="importmap">
{
"imports" : {
"vue" : "https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.esm-browser.prod.js"
},
"scopes" : {
"/" : { "vue": "https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.esm.browser.min.js" }
}
}
</script>
<script type="module">
import vue from './vue';
console.log(vue);
</script> |
perhaps compare yours against this importmap.example.json generated by importly, which works, as far as i know. strictly speaking, this issue is not related to however, if you do find a working solution, it would be prudent to post it here anyways, as people with a similar problem may be redirected here by a search engine. cheers 👋 |
This is a simple fix. Your import should be 'vue' not './vue'. |
Polyfill has the
scopes
attribute, but I can't understand how to use it, I write the code like below, but it can't work, DevTool report :GET http://localhost:2334/test/old/vue2 net::ERR_ABORTED 404 (Not Found)
, does anyone can tell me why ? I searched in thereadme.md
but without any useful info. 😓The text was updated successfully, but these errors were encountered: