ShareChiWai Notes
ShareChiWai Notes
Home
Blog
Menu Venue
Event
Sharing
Contact
Light
Dark
Automatic
Posts
Cannot find my Azure Subscription
公司岩岩Apply 左做 Microsofr Partner 之後用開果個 Azure Account D Resource / Subscription 都唔見曬 Microsoft Azure Subscription 最後發現原來係因為 Apply 左做 Microsoft Partner之後會create 左個新既 Work / Organization account 原本create果個 Account 係 Personal account…
Last updated on Feb 17, 2024
1 min read
Runtime.HandlerNotFound index.handler is undefined or not exported
最近係公司度做返D house keeping 野… 其中我地有一個service 係用Lambda 寫的… 我地會 upload 一個Zip file 去 S3 度比 Lambda 去 deploy Deploy 完之後 出現左以下的 Error Message Warning: Accessing non-existent property 'handler' of module exports inside circular dependency
Last updated on Feb 17, 2024
1 min read
vitest.config.js
岩岩接觸 Vitest 由於我唔係好熟 TypeScript 但係 Vitest 既 tutorial 同 documentation 多數係用 TypeScript 所以唔知個 vitest.config.js 應該係有 D 咩… 所以就係呢度 share 我個 initial config vitest.config.js import react from "@vitejs/plugin-react"; import { defineConfig } from "vitest/config"; // https://vitejs.
Last updated on Feb 17, 2024
1 min read
Codecov upload coverage report without GitHub Action
終於有時間玩返D 自己想玩既野 好耐之前自己用 nodejs express 整左個 project 用 Jest 做 Unit Test 之後 upload 個 report 去 Codecov{:target="_blank"} 放便睇返個coverage report 最近想幫岩岩起既 NextJs project 做 Unit Test 同 upload report 去 Codecov
Last updated on Feb 17, 2024
1 min read
VS Code Markdown auto format issue
最近發現新寫既 blog post D format 爛曬… 之後同埋個 editor 無曬 D syntax highlight… 過左一段時間.. 原來是因為 install 左一個 extension.. 佢當左.md file extension 係 Infrastructure as Code 既 format Infrastructure as Code 所以唔識 apply Markdown 既 format
Last updated on Feb 17, 2024
1 min read
ESLint Auto Fix via CLI
最近有時間執返好D code 開始set 返好D ESLint 發現 update 左 eslint config後.. 有很多files 要fix 如果有command / function 可以一次過scan and fix 曬便好 解決方法 我們只需要在 CLI 上執行這個 eslint command 便可 npx eslint --fix --ext .
Last updated on Feb 17, 2024
1 min read
NextJs - How to change port
最近想 Upgrade 現有的 NextJs Project 所以諗住用 npx create-next-app@latest 來建立一個新的 project 來做 migration 問題出現了… NextJs 的 default port 是 3000 那麼怎樣可以更改其中一個project 的 starting port 呢? 解決方法 我們只需要更新 package.json 上的 dev script 加 -p [PORT_NUMBER] 便可
Last updated on Feb 17, 2024
1 min read
NodeJs - SyntaxError Cannot use import statement outside a module
嘗試起個新既 NodeJs project 用 import rather than require 時出現以下 Exception.. SyntaxError: Cannot use import statement outside a module 解決方法: 原來只要係 package.json 上 加返以下 property 便可.. "type": "module", hope you find it useful
Last updated on Feb 17, 2024
1 min read
Git Ignore new change after initial commit
個NodeJs Express project 為左要方便自己試野既關係… 開左個新 route 放左係 routes/poc.js 記住做完 initial commit 之後就可以 用 .gitignore 去 ignore 呢個 file… 誰不知… commit 完之後 再用 gitignore 係唔 work 的 解決方法: 用左以下 git command 去 --assume-unchanged 去解決.
Last updated on Feb 17, 2024
1 min read
SF Express Tracking - 順豐速運運單追蹤
最近因為耳筒 send 左去維修… 會用SF Express 寄返 比我… 但係每次 Google SF Express Tracking 之後又要人手打果個 Tracking no.. 感覺有D 煩… 所以今日想同大家分享一個 direct link… 只要replace 左 {TrackingId} 便可.. https://www.sf-international.com/us/en/dynamic_function/waybill/#search/bill-number/{TrackingId} hope you find it useful
Last updated on Feb 17, 2024
1 min read
«
»
Cite
×