Skip to content

Commit 551aeb0

Browse files
committed
workaround new Node peer deps with --legacy-peer-deps CLI switch
1 parent 4264c19 commit 551aeb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DemoServer/DemoServer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
7171
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
72-
<Exec Command="npm install" />
72+
<Exec Command="npm install --legacy-peer-deps" />
7373
<Exec Command="node node_modules/webpack/bin/webpack.js --mode production" />
7474
<!-- Include the newly-built files in the publish output -->
7575
<ItemGroup>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Setup
22
In the `DemoServer` folder:
33
```
4-
npm install
4+
npm install --legacy-peer-deps
55
npm run webpack
66
```
77

0 commit comments

Comments
 (0)