Closed patrup closed 1 year ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@patrup - it sounds like it is trying to load some resources from your SharePoint/Microsoft 365 Tenant and can't authenticate. As the Docker image is created by the community, I would check with PnP Community, the issue is not related to SPFx itself.
@waldekmastykarz @hugoabernier - fyi.
@patrup you may want to look at the following diagnostics steps: https://github.com/pnp/sp-dev-fx-webparts/wiki/Opening-a-sample-using-a-development-container#debugging-with-containers
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
commands to create dev certificate and copy it to the root folder of the project
echo echo -e "\e[1;94mGenerating dev certificate\e[0m" gulp trust-dev-cert
Convert the generated PEM certificate to a CER certificate
openssl x509 -inform PEM -in ~/.rushstack/rushstack-serve.pem -outform DER -out ./spfx-dev-cert.cer
Copy the PEM ecrtificate for non-Windows hosts
cp ~/.rushstack/rushstack-serve.pem ./spfx-dev-cert.pem
add *.cer to .gitignore to prevent certificates from being saved in repo
if ! grep -Fxq '.cer' ./.gitignore then echo "# .CER Certificates" >> .gitignore echo ".cer" >> .gitignore fi
add *.pem to .gitignore to prevent certificates from being saved in repo
if ! grep -Fxq '.pem' ./.gitignore then echo "# .PEM Certificates" >> .gitignore echo ".pem" >> .gitignore fi
echo echo -e "\e[1;92mReady!\e[0m"
echo -e "\n\e[1;94m**\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**"
{ "version": "0.2.0", "configurations": [ { "name": "Hosted workbench", "type": "pwa-chrome", "request": "launch", "url": "https://xxx.sharepoint.com/_layouts/15/workbench.aspx", "webRoot": "${workspaceRoot}", "sourceMaps": true, "sourceMapPathOverrides": { "webpack:///.././src/": "${webRoot}/src/", "webpack:///../../../src/": "${webRoot}/src/", "webpack:///../../../../src/": "${webRoot}/src/", "webpack:///../../../../../src/": "${webRoot}/src/" }, "runtimeArgs": [ "--remote-debugging-port=9222", "-incognito" ] } ] }
{ "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/spfx-serve.schema.json", "port": 4321, "https": true, "initialPage": "https://xxx.sharepoint.com/_layouts/15/workbench.aspx" }
{ "name": "test-debug", "version": "0.0.1", "private": true, "main": "lib/index.js", "scripts": { "build": "gulp bundle", "clean": "gulp clean", "test": "gulp test" }, "dependencies": { "tslib": "2.3.1", "react": "16.13.1", "react-dom": "16.13.1", "office-ui-fabric-react": "7.185.7", "@microsoft/sp-core-library": "1.15.2", "@microsoft/sp-property-pane": "1.15.2", "@microsoft/sp-webpart-base": "1.15.2", "@microsoft/sp-lodash-subset": "1.15.2", "@microsoft/sp-office-ui-fabric-core": "1.15.2" }, "devDependencies": { "@microsoft/rush-stack-compiler-4.5": "0.2.2", "@rushstack/eslint-config": "2.5.1", "@microsoft/eslint-plugin-spfx": "1.15.2", "@microsoft/eslint-config-spfx": "1.15.2", "@microsoft/sp-build-web": "1.15.2", "@types/webpack-env": "~1.15.2", "ajv": "^6.12.5", "gulp": "4.0.2", "typescript": "4.5.5", "@types/react": "16.9.51", "@types/react-dom": "16.9.8", "eslint-plugin-react-hooks": "4.3.0", "@microsoft/sp-module-interfaces": "1.15.2" } }