vue-typescript-admin-template icon indicating copy to clipboard operation
vue-typescript-admin-template copied to clipboard

minimal 分支的 package.json 版本異常

Open tooilxui opened this issue 3 years ago • 4 comments

該分支的 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 正常,建議修正。

tooilxui avatar Feb 23 '21 06:02 tooilxui

Can you check with the latest minimal branch code? It works fine on my Mac now.

Armour avatar Apr 23 '21 16:04 Armour

該分支的 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版本未更改的情况下)

Liangzhihe avatar May 27 '21 01:05 Liangzhihe

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!

ozkank avatar May 29 '21 14:05 ozkank

yes I have this problem too.

My computer also is win10

admin00001 avatar Oct 04 '21 12:10 admin00001