Description
I've just found this awesome library and rewrote all my store code in Nuxt.js app to pathify.
I have a vue-native
app and want to use this store in it.
But I am getting error:
Error: Unable to resolve module 'vue' from '.../node_modules/vue-class-component/dist/vue-class-component.common.js'
But if I try to add vue, it then fails with runtime error:
undefined is not an object (evaluating 'window.navigator.userAgent.toLowerCase()'
As I understand, pathify
depends on vue-class-component
, which depends on vue
.
But vue-native has own fork of vue to work in react-native environment. It is called vue-native-core
So I already tried a bit to replace vue
with vue-native-core
with babel plugin module-resolver
but without luck yet.
Maybe there is some way to remove the dependency on vue or something like that. I will continue to dig but in case someone will have same problem, the issue is already here.