From e2eb73f5999202626da46601ff88beb7b754b441 Mon Sep 17 00:00:00 2001 From: Chris Lizon Date: Wed, 3 May 2023 11:04:37 -0400 Subject: [PATCH] Updated SP-build-web version, updated instructions --- samples/react-content-query-online/README.md | 7 +++++-- samples/react-content-query-online/package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/samples/react-content-query-online/README.md b/samples/react-content-query-online/README.md index cc1d0bb1d..646f6a425 100644 --- a/samples/react-content-query-online/README.md +++ b/samples/react-content-query-online/README.md @@ -81,14 +81,17 @@ Download & install all dependencies, build, bundle & package the project # download & install dependencies npm install +#If you receive an error Cannot find module 'worker_threads' you will need to tell Node 10 to use the experiemental worker features via environment variable. In Powershell this is accomplished like this: +$env:NODE_OPTIONS="--experimental-worker" + # transpile all TypeScript & SCSS => JavaScript & CSS gulp build # create component bundle & manifest -gulp bundle +gulp bundle --ship # create SharePoint package -gulp package-solution +gulp package-solution --ship ``` These commands produce the following: diff --git a/samples/react-content-query-online/package.json b/samples/react-content-query-online/package.json index 90c02a520..604860d57 100644 --- a/samples/react-content-query-online/package.json +++ b/samples/react-content-query-online/package.json @@ -13,6 +13,7 @@ }, "dependencies": { "@microsoft/mgt": "^2.0.1", + "@microsoft/sp-build-web": "1.11.0", "@microsoft/sp-core-library": "1.11.0", "@microsoft/sp-lodash-subset": "1.11.0", "@microsoft/sp-office-ui-fabric-core": "1.11.0", @@ -65,7 +66,6 @@ "devDependencies": { "@microsoft/rush-stack-compiler-2.9": "0.7.16", "@microsoft/rush-stack-compiler-3.3": "0.3.5", - "@microsoft/sp-build-web": "1.11.0", "@microsoft/sp-module-interfaces": "1.11.0", "@microsoft/sp-tslint-rules": "1.11.0", "@microsoft/sp-webpart-workbench": "1.12.1",