Shared folder with vagrant cause invisible characters appending

前端 未结 2 1002
孤独总比滥情好
孤独总比滥情好 2021-02-19 01:59

I have a few invisible characters (�) that appear at the end of a javascript document that cause the \"illegal character\" error in FF or Chrome. I saw different topics about th

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 02:56

    It seems that you're using Vagrant.. please take a look at your _Vagrantfile and check the way files are written on the VM filesystem.

    cat ~/.vagrant.d/boxes/[YOUR VM NAME]/include/_Vagrantfile
    

    Maybe you are using config.vm.synced_folder try to use NFS:

    config.vm.synced_folder "/home/myuser/shared", ".", :nfs => true 
    

提交回复
热议问题