minimal 分支的 package.json 版本異常
該分支的 package.json devDependencies 區段使用的webpack為 ^5.3.2,這導致無法在使用npm install安裝相關依賴後serve起來。 會有如下錯誤:
ERROR Error: Rule can only have one resource source (provided resource and test + include + exclude
檢查 master 分支發現是使用 ^4.4.2,修改為相同版本後 npm install && npm run serve 正常,建議修正。
Can you check with the latest minimal branch code? It works fine on my Mac now.
該分支的 package.json devDependencies 區段使用的webpack為 ^5.3.2,這導致無法在使用npm install安裝相關依賴後serve起來。 會有如下錯誤:
ERROR Error: Rule can only have one resource source (provided resource and test + include + exclude檢查 master 分支發現是使用 ^4.4.2,修改為相同版本後 npm install && npm run serve 正常,建議修正。
试了下,使用npm install 就会有这种错误,而使用yarn就不会,具体原因未知,(webpack版本未更改的情况下)
We are getting same error on windows -> "Rule can only have one resource source (provided resource and test + include + exclude) in { ... " Is there any working solution? @Armour
Update: Downgrading the webpacks package to "webpack": "^4.45.0" worked!
yes I have this problem too.
My computer also is win10