M
M
mavellol2019-05-25 07:44:56
Vue.js
mavellol, 2019-05-25 07:44:56

Vue js, how to import a file in a folder upstream?

When trying to import a file into a component, for example, an error occurs like this error can't resolve ./../dir/file Although when importing a file in the same folder as the component, the import is successful.
import File from './../dir/file'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dk-web, 2019-05-25
@dk-web

import File from '../dir/file'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question