when i try to use
Vue.use(vsFunctions)
Error: Couldn't find preset "@vue/app" relative to directory
@cristi200915 you could add all the js to see how you imported the library
import Vue from 'vue'
import Vuex from 'vuex'
import Vuesax from 'vuesax'
import vsFunctions from 'vuesax/dist/functions'
import 'vuesax/dist/vuesax.css'
import VueRouter from 'vue-router'
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use(Vuesax, {
theme: {
colors: {
primary: 'rgb(96, 31, 255)',
success: 'rgb(23, 201, 100)',
danger: 'rgb(242, 19, 93)',
warning: 'rgb(255, 130, 0)',
dark: 'rgb(36, 33, 69)'
}
}
})
Vue.use(vsFunctions)
this is how i import the library
You could try removing the full Vuesax import to verify that the error is only in vsFunctions, thank you very much
```js
...
-- Vue.use(Vuesax, {
theme: {
colors: {
primary: 'rgb(96, 31, 255)',
success: 'rgb(23, 201, 100)',
danger: 'rgb(242, 19, 93)',
warning: 'rgb(255, 130, 0)',
dark: 'rgb(36, 33, 69)'
}
}
}) // delete this import and check if the error persists
...
Actually the error still without the full Vuesax import
I'm using Laravel Mix for compilation
I've finally solved removing the presest on vuesax package.json
"babel": {
"presets": [
"@vue/app"
]
@cristi200915 Does the error persist using the entire framework?
No @luisDanielRoviraContreras eveything is right
@cristi200915 then the problem is only when importing the functions independently I will review it to give you an answer at the moment just use vuesax completely, thank you very much
Still have the error?
I am getting an error similar to this one while trying to use the vsLoading individually
I have tried following ways to import just the loading component no other component.
import vsLoading from 'vuesax/dist/functions/vsLoadingimport vsLoading from 'vuesax/dist/functions/vsLoading/index import {vsLoading} from 'vuesax/dist/functionsThis is the error I am getting
Couldn't find preset "@vue/app" relative to directory <my project directory>/node_modules\vuesax
How can I fix this ?
Thank you.