CodeDredd / pinia-orm

The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
https://pinia-orm.codedredd.de/
MIT License
452 stars 39 forks source link

main.js:42 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@pinia-orm_axios.js?v=40365b2e' does not provide an export named 'createPiniaOrmPluginAxios' (at main.js:42:10) #1777

Closed ivanswoop006 closed 6 months ago

ivanswoop006 commented 9 months ago

Environment

vue 2

Reproduction

put this code in main file

import { createPinia, PiniaVuePlugin } from 'pinia'
import { createORM } from 'pinia-orm'
import { createPiniaOrmPluginAxios } from '@pinia-orm/axios'

Vue.use(PiniaVuePlugin)
const pinia = createPinia()
const piniaOrm = createORM()
piniaOrm().use(createPiniaOrmPluginAxios({
  axios
}))
pinia.use(piniaOrm)

Describe the bug

main.js:42 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@pinia-orm_axios.js?v=40365b2e' does not provide an export named 'createPiniaOrmPluginAxios' (at main.js:42:10)

Additional context

No response

Logs

main.js:42 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@pinia-orm_axios.js?v=40365b2e' does not provide an export named 'createPiniaOrmPluginAxios' (at main.js:42:10)
ivanswoop006 commented 9 months ago

maybe its meant to be "createPiniaOrmAxios" not "createPiniaOrmPluginAxios"

CodeDredd commented 6 months ago

@ivanswoop006 you are right. My mistake in the docs 😞 ...altought i surly wanted the plugin name in it. But now it's too late for this change. ^^