Coder Social home page Coder Social logo

playground's Issues

React playground fails with TypeError and React Invariant Violation

React playground fails with the following two erros:

react-onsenui.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'string')
    at react-onsenui.min.js:1:14787
    at react-onsenui.min.js:1:4243
    at react-onsenui.min.js:1:4357

and

react-dom.min.js:15 Uncaught Invariant Violation: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]=%20Check%20the%20render%20method%20of%20%60MyPage%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at r (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:15:17790)
    at p.i [as _instantiateReactComponent] (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:15:15991)
    at p.performInitialMount (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:13:6780)
    at p.mountComponent (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:13:5742)
    at Object.mountComponent (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:14:18733)
    at p.performInitialMount (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:13:6856)
    at p.mountComponent (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:13:5742)
    at Object.mountComponent (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:14:18733)
    at a (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:14:10575)
    at r.perform (https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js:15:8936)

These errors occur regardless of the selected code example.

Saving and sharing with short URL

On the official Onsen UI playground, it doesn't seem possible to save a code snippet and reach it afterwards with a shareable short URL. This functionality is present e.g. in the Go playground and I believe is somewhat expected.

Many programmers would find it useful to be able to quickly create and share algorithms, pitfalls, bugs, mockups, proofs-of-concept...and this tool would support, facilitate and encourage Onsen UI discussions.

Label issues reported from playground

Currently when an issue is reported from https://onsen.io/playground by clicking the 'Report an issue' button, there are no GitHub labels applied to the created issue. It would be better if issues were automatically labelled with the appropriate framework.

One of these labels should be applied:

  • core
  • react
  • vue
  • angular1
  • angular2+

These labels already exist in OnsenUI/OnsenUI issues.

The code already uses the framework name and prepends it to the issue title, so it should be straightforward to use that to figure out which label to apply.

The line that needs to be changed is:

newTab.location.href = `https://github.com/OnsenUI/OnsenUI/issues/new?title=${title}&labels[]=${frameworkName}&labels[]=hasDemo&body=${app.services.generateIssueTemplate()}`;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.