0

enter image description hereI've a fiel name Countries.vue in src/components/Pages/Admin/Countries.vue I want to import it in a file name Add_Doctor.vue in src/components/Pages/Admin/Doctors/Add_Doctor.vue.

I used import Contries from './components/Pages/Admin/Countries' But i give me an error module not found how to solve it?

3 Answers 3

1

You can import both ways

import Countries from './components/Pages/Admin/Countries.vue'

import Countries  from '@/components/Pages/Admin/Countries.vue'
Sign up to request clarification or add additional context in comments.

2 Comments

I added a picture. It may help
Check now. It should be 'Countries' instead of 'Contries'
0

try this

import Contries from '../Countries.vue'

// @ is an alias to /src

1 Comment

I added a picture. It may help
0

try below one import Countries from './components/Pages/Admin/Countries.vue'

I think you are missing Countries.vue in the end

3 Comments

Module not found: Error: Can't resolve './components/Pages/Admin/Countries.vue'
I added a picture. It may help
I updated the answer. there is a spelling mistake. you used country-name as Countries. But you import it as Contries. Use Countries there

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.