L
L
Little Vasya2019-04-17 20:20:22
Vue.js
Little Vasya, 2019-04-17 20:20:22

Imports in VUE CLI 3.0?

I import the component import ItemCard from '@/components/card/itemCard'
But I get this error
This dependency was not found:
...
To install it, you can run: npm install --save @/components/card/ItemCard

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Pautov, 2019-04-17
@emilov

import ItemCard from '@/components/card/itemCard.vue'

A
Alexander Aladin, 2019-04-19
@sanchos86

If the editor is from jetbrains (I tried it in webstorm), then in Settings| Languages ​​& Frameworks | JavaScript | webpack you need to specify the path to the webpack config, in vue-cli-3 it is in node_modules/@vue/cli-service/webpack.config.js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question