3 Replies Latest reply on Aug 14, 2018 1:39 PM by Keshia Rose

    Does React tutorial works with Extension API?

    Konstantins Kozins

      Hello,

      I tried to use React Tutorial, but it doesn't work with Tableau Extension API

        • 1. Re: Does React tutorial works with Extension API?
          Keshia Rose

          Hi Konstantins,

           

          Extensions do work with React, as a matter of fact, all the Tableau extensions are written with React. Which part were you having trouble with?

           

          Take care,

          Keshia

          • 2. Re: Does React tutorial works with Extension API?
            Konstantins Kozins

            Hi Keshia,

            I used tutorial from GitHub - extensions-api/Tutorial at master · tableau/extensions-api · GitHub

            JavaScript version works fine, but when I tried to use React version extension, Tableau shows me following -

            Unable to complete action

            Error parsing extension manifest :

            Error(2,85): no declaration found for element 'manifest' (id: )

            Error(2,85): attribute 'manifest-version' is not declared for element 'manifest' (id: )

            Error(2,85): attribute 'xmlns' is not declared for element 'manifest' (id: )

            Error(3,90): no declaration found for element 'tableau-addin' (id: )

            Error(3,90): attribute 'id' is not declared for element 'tableau-addin' (id: )

            Error(3,90): attribute 'addin-version' is not declared for element 'tableau-addin' (id: )

            Error(4,21): no declaration found for element 'default-locale' (id: )

            Error(5,31): no declaration found for element 'name' (id: )

            Error(5,31): attribute 'resource-id' is not declared for element 'name' (id: )

            Error(6,18): no declaration found for element 'description' (id: )

            Error(7,17): no declaration found for element 'addin-type' (id: )

            Error(8,25): no declaration found for element 'dashboard-addin' (id: )

            Error(10,105): no declaration found for element 'author' (id: )

            Error(10,105): attribute 'name' is not declared for element 'author' (id: )

            Error(10,105): attribute 'email' is not declared for element 'author' (id: )

            Error(10,105): attribute 'organization' is not declared for element 'author' (id: )

            Error(10,105): attribute 'website' is not declared for element 'author' (id: )

            Error(11,22): no declaration found for element 'min-api-version' (id: )

            Error(12,22): no declaration found for element 'source-location' (id: )

            Error(13,12): no declaration found for element 'url' (id: )

            Error(15,11): no declaration found for element 'icon' (id: )

            Error(17,14): no declaration found for element 'resources' (id: )

            Error(18,25): no declaration found for element 'resource' (id: )

            Error(18,25): attribute 'id' is not declared for element 'resource' (id: )

            Error(19,28): no declaration found for element 'text' (id: )

            Error(19,28): attribute 'locale' is not declared for element 'text' (id: )

            • 3. Re: Does React tutorial works with Extension API?
              Keshia Rose

              Hi Konstantins,

               

              Looks like the React Version in the Tutorial has not been updated to the latest version of the API and is not working. I've made some adjustments to get it working and have attached it to this response. I'll see if we can get the one on GitHub updated soon.

               

              Take care,

              Keshia

              1 of 1 people found this helpful