Search code examples
vue.jsvisual-studio-codevue-componentvue-native

unable to import a js file in vue native


as you can see I tried to import the js from src/store

I tried the following path but none of them working.

./store/member.module

/@store/member.module

member.module

Previously I used /@store/member.module for my others Vue project but somehow it is not working in vue native

enter image description here


Solution

  • You forgot src

    ./src/store/member.module
    

    I suggest to create a folder named member with a js file in it module.js. Better avoid these dot notation names