原创 vue3+ts+nginx部署探索

工程信息 vue-cli: @vue/cli 4.5.13 vue3 : "version": "3.1.4", ts: <script lang='ts' setup> 模式 (後改爲普通模式) vue-router: "versi

原创 [vue3]does not exist on type 'ComponentPublicInstance.md

Property '$test' does not exist on type 'ComponentPublicInstance eviroment vue3 + ts problem 期望使用全局變量 // main.ts app.con

原创 Mac下簡書寫markdown沒有效果

# Mac下簡書寫markdown沒有效果   簡書編輯支持富文本和markdown兩種模式 編輯頁面-右下角-設置-默認編輯器 markdown編輯器 富文本編輯器   選擇markdown之後編輯內容沒有生效 原因是 默

原创 [vue3] error in ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js

問題 使用vue-cli(4.5.13) create vue3(3.1.3) npm run server   報錯 error  in ./node_modules/@vue/reactivity/dist/reactivity.esm

原创 [git] 解決github文件夾有向右的白色箭頭並且不能打開的解決辦法

原因 箭頭可能意味着這是一個子模塊 解決辦法 刪除子文件夾裏面的.git文件 執行git rm --cached [文件夾名] 執行git add . 執行git commit -m "commit messge" 執行git push

原创 [vue] You are using the runtime-only build of Vue where the template compiler is not available

環境 vue2 vue-cli3 vue.config.js   報錯 在子組件方式內,調用Vue.component定義組件,並在子組件中使用 You are using the runtime-only build of Vue whe

原创 [chrome] failed to load response data

  問題 chrome瀏覽器xhr請求看不到返回數據,但是firefox瀏覽器可以看到   可能原因 1. Chrome 開發者工具開啓了 Preserve log 2. 請求回覆後立即頁面刷新 3. 請求一個很大的 JSON 數據,導致錯

原创 nginx error invalid pid number in nginx.pid

    解決方法: 需要先執行 nginx -c /etc/nginx/nginx.conf nginx.conf文件的路徑可以從nginx -t的返回中找到。 nginx -s reload

原创 Nginx emerg 8080 failed address family not supported by protocal

原因 ng配置裏有一項是接收ipv6地址 與IPV6有關,Address family not supported by protocol也進一步印證了  ipv6 is disabled on your server.   解決辦法1 修

原创 [nginx] nginx emerg open() nginx.pid 13 permission denied

    如果監聽443端口,1000之下的端口,需要使用root啓動ng  

原创 [antd-vue] check failed for prop filelist

  問題 <a-upload :file-list="otherFiles"> a-upload組件綁定fileList參數報錯 check failed for prop filelist    原因 綁定的變量otherFiles在代碼

原创 [antd-vue] a-select v-decorator form.setFiledsValue select placeholder不顯示問題

    背景 使用antd-vue的a-select組件 用v-decorator綁定變量name,設置placeholder   需求 使用this.form.setFiledsValue設置變量name爲空 this.form.setF

原创 [wechat] Error: errCode: -501000 errMsg: Environment not found

環境 微信小程序雲開發 微信開發在工具 stable 1.05   問題 在app.js指定當前雲函數使用的環境時,報錯 Error: errCode: -501000 errMsg: Environment not found    

原创 [wechat] Error: EEXIST file already exists open /User/.../Library/Application Support/微信開發在工具/...js

    操作 引入vant-weapp之後 小程序開發工具可以展示 vant-button組件了 但是預覽編譯失敗   報錯 Error: EEXIST file already exists open /Users/dream/Libra

原创 [wechat] miniprogram/node_modules/@types/wechat-miniprogram/index.js: 未找到npm包入口文件

    操作 1. 引入vant-weapp:npm i @vant/weapp -S --production 2. 小程序:工具-npm構建   報錯 /.../miniprogram/node_modules/@types/wec