sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFx web part can't be used in a modern page

Open ABoedt opened this issue 6 years ago • 5 comments

Category

  • [x] Bug

Describe the bug

I created a new web part using SPFx. When trying it out on the workbench it works fine. Adding it to a legacy page works fine. The only thing that is giving issues is when I add the web part to a modern page I get this error instead of the working web part.

Steps to reproduce

  1. Scaffold a new web part using yo
  2. gulp package-solution
  3. Add the package to the sharepoint app catalog
  4. Add the app to the site collection
  5. Add the app to a modern page
  6. Error appears in place of the web part

Expected behavior

A working hello world web part in a modern page.

Developer environment

  • OS: Windows 10
  • Framework: Node.js v10
  • Browser(s): Chrome v79, FireFox v31
  • Tooling: VS Code, SPFx

Additional context

ABoedt avatar Mar 09 '20 10:03 ABoedt

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Mar 09 '20 10:03 msft-github-bot

The more context details you can provide, the easier it is to help assist on issues. Any code you can provide and/or screenshots of the issue also help. The easier you can make it to reproduce the issue, the easier and quicker it is for someone to help you. Please refer to How to Create Good Issues, specifically How to Create Good Issues: Include context, in our wiki for more details.

msft-github-bot avatar Mar 09 '20 15:03 msft-github-bot

Unfortunately. we need a LOT more context. What version of SPFx are you using, any other details about the error, what environment you're using, etc.. Also consider posting your project to a public github repo and sharing a link to it

andrewconnell avatar Mar 09 '20 15:03 andrewconnell

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

msft-github-bot avatar Mar 16 '20 16:03 msft-github-bot

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

msft-github-bot avatar Mar 23 '20 18:03 msft-github-bot