Open
Description
What problem does this feature solve?
Lets users experiment with Pinia on the Vue SFC Playground.
What does the proposed API look like?
import { defineStore } from 'pinia'
__modules__['App.vue'] is undefined
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
edison1105 commentedon Dec 1, 2022
pinia.esm-browser dependency on @vue/devtools-api which seems not have a esm-browser version.
jacekkarczmarczyk commentedon Dec 1, 2022
@edison1105 it has: https://unpkg.com/@vue/devtools-api/lib/esm/index.js
jacekkarczmarczyk commentedon Dec 1, 2022
Not sure what you mean, I have a PR for Vuetify playground that uses it (for Vue Router) and it seems to work fine:
https://vuetify-playground-bjer2u3fc-vuetifyjs1.vercel.app/#eNqFUk1TgzAQ/SvMnktisXroYAf/gXfjgUqsseRjkkB1Ov3vbgK2CFN6grf79u3bB69HeDaGtA2HNeSeS1OXnm+YSpK8TUtj4msEshSqR4itbjy3aS3UPvH6iYEpd3zJYPOCz2SZ0wHhxlT2N5XNT7WCHzZnSkS9OTpwF0DnO6eDe2ABQhptPTIN+XJa4cHHMMD6hmOwTmIl1DCRgBl8em/cmtJGmf2OvGtJC+xR2ygvJE8rLYt7kpHVA62E88M64U6mW6sPjlvcyGAxEE+7M67tuDCKVSd8qXS6jarqsW50VvHWa107TEHMnjAkFo+0FluKylSoin9P/Hrx8TNjNrQxhzuSnd2GUrA6kaKYR4tf0HLcZK9nEE2OuP+yHvUmeYedJ6ZOcFpAN4d/QTQJb79ELP4D
edison1105 commentedon Dec 1, 2022
@jacekkarczmarczyk
oh~ It's my fault. It works
vanillajonathan commentedon Dec 1, 2022
Almost:
jacekkarczmarczyk commentedon Dec 1, 2022
@vanillajonathan this error happens to me only in Firefox and is not related to devtool-api as it happens also with initial empty sfc playground
vanillajonathan commentedon Dec 1, 2022
Yeah, I tried to use Firefox. It works in Chrome and Edge though.
Could Vuex, Vue Router and Bootstrap be added too?
Sight-wcg commentedon Dec 2, 2022
Try enabling
dom.importMaps.enabled
vanillajonathan commentedon Dec 2, 2022
With disabled
dom.importMaps.enabled
set tofalse
:With disabled
dom.importMaps.enabled
set totrue
:skirtles-code commentedon Dec 16, 2022
I've opened a PR to make using Pinia with the SFC Playground a little less troublesome: #7311. See the example link at the top of the PR.
vanillajonathan commentedon Dec 16, 2022
Firefox 108 now supports import maps. 👍
https://www.mozilla.org/en-US/firefox/108.0/releasenotes/