NativeScript / playground-feedback

Feedback for NativeScript Playground
Apache License 2.0
16 stars 1 forks source link

Allow Components (pages) to display in Preview with common unsupported subcomponents rendered as placeholders. #164

Open EdJones opened 5 years ago

EdJones commented 5 years ago

Dear friend, we want to specify that this repo is {N} Playground related.

Please, provide the details below:

Preview does not support common plugins like nativescript-youtubeplayer. The error will not allow the entire page component to load.

Did you search for the problem in other open issues in this repo?

Yes

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital letter. Preview is a more convenient test/debugging platform than tying my phone to my devel machine. (Can't run simulator on Windows). But unsupported plugins like NativeScriptYoutubePlayer don't just fail to display. They break either the entire app (with component registration statement) or the particular page holding the component (page just doesn't load).

For common plugin components like this, displaying a placeholder (instead of just failing) would be a preferred solution.

Did you try it outside of {N} Playground?

Which browser are you using?

Are there any errors/warnings logged in your browser console?

Which platform(s) does your issue occur on?

Please tell us how to recreate the issue with as much detail as possible.

The best approach would be to get your code running in the {N} Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there. Place a nonsupported component like <YoutubePlayer ref="player" src="8JNVzioC7lc" apiKey="" height="160" /> in a page. Navigate to that page in the app. Page will not display at all.