Choy
Choy

Reputation: 482

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

Upvotes: 0

Views: 146

Answers (1)

Ilijanovic
Ilijanovic

Reputation: 14904

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

Upvotes: 1

Related Questions