[Vuejs]-Error and blank page on Vue JS when creating a json file in assets

0๐Ÿ‘

โœ…

I finally find a turnaround.
Instead of behing stubborn and try at any cost to create a JSON file.

I went for a "mydata.js" file

with the inner structure

const data = {
  Mykey1: 'Myvalue1',
  HasKey1: true,
  otherdata: 'yes'
}

export default data

and import it from my Vue file with

<script>
import AwsConfig from '@/config/mydata.js.js'
export default {
...

Leave a comment