Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimal 分支的 package.json 版本異常 #193

Open
tooilxui opened this issue Feb 23, 2021 · 4 comments
Open

minimal 分支的 package.json 版本異常 #193

tooilxui opened this issue Feb 23, 2021 · 4 comments

Comments

@tooilxui
Copy link

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

@Armour
Copy link
Owner

Armour commented Apr 23, 2021

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

@Liangzhihe
Copy link

Liangzhihe commented May 27, 2021

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

@ozkank
Copy link

ozkank commented May 29, 2021

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!

@admin00001
Copy link

yes I have this problem too.

My computer also is win10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants