(Becuase I need specified file name) in Vue-CLI and I want to import it in a component, When I use this way :
import JSON from '../../public/Data.json';
It works but after building and modifying the JSON file, It doesn't work correctly and I think it is related to my importing. Is there any other and absolutely correct way ?
is it valid JSON?
Any solution guys? I have googled and asked in stackoverflow and still no way ...
Обсуждают сегодня