pinia-orm icon indicating copy to clipboard operation
pinia-orm copied to clipboard

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)

Open ivanswoop006 opened this issue 1 year ago • 1 comments

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 avatar Feb 09 '24 21:02 ivanswoop006

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

ivanswoop006 avatar Feb 09 '24 21:02 ivanswoop006

@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. ^^

CodeDredd avatar May 06 '24 16:05 CodeDredd