GENERATE_SOURCEMAP=false Issue
未關閉
還沒有人認領這個 Issue。
bug: unconfirmed
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
Summary
When I run the project after npm install there was the bellow error:
'GENERATE_SOURCEMAP' is not recognized as an internal or external command,
Page
package.json
Details
I have these scripts in package.json
"scripts": {
"start": " GENERATE_SOURCEMAP=false react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start"
}
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 package.json 中的腳本開始,並在 npm install 後重現回報的錯誤,尤其是在無法辨識 GENERATE_SOURCEMAP 的環境中。確定 start 和 build 指令的預期行為;當這些指令能夠在不出現回報錯誤的情況下執行時,該 issue 即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100