simonallen 技術部落格
  • Home
  • About
  • Tags
Sign in Subscribe

React.js

React.js 筆記:Minified exception occurred

工作上撞到的問題,隨手紀錄一下:正式站預期該顯示的東西沒有顯示,開發者工具 log 是: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings. 乍看會覺得像是 React 壓縮程式碼出錯,但其實 debug 的點在於後端送來的 HTML。 因為我們是用 React 的 dangerouslySetInnerHTML 來轉換後端丟來的 HTML,而後端丟來的 HTML 是在公司後台輸入框上的。 而公司後台輸入框塞的 HTML,是公司設計中心的網頁設計師拿他們切板 HTML 自己塞的,但是網頁設計師的 HTML少了結尾標籤..。 那自然 dangerouslySetInnerHTML會報錯進而導致頁面阻塞。 無言
SimonAllen 26 6月 2019

Subscribe to simonallen 技術部落格

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
simonallen 技術部落格 © 2025. Powered by Ghost