Results 1 to 5 of 5

Thread: Why have duplicate Imports for ExtReact & Launch

  1. #1
    Sencha User
    Join Date
    Oct 2018
    Posts
    2

    Default Why have duplicate Imports for ExtReact & Launch

    Why are duplicate imports required in the 6.6 ext-react examples? I've tried following the es-lint styleguide way but it won't work

    import { launch } from '@sencha/ext-react'
    import { ExtReact } from '@sencha/ext-react'

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    Have you tried it when they are joined together? It won't affect anything if they are joined together:

    Code:
    import { launch, ExtReact} from '@sencha/ext-react'
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2018
    Posts
    2

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Have you tried it when they are joined together? It won't affect anything if they are joined together:

    Code:
    import { launch, ExtReact} from '@sencha/ext-react'
    Yes, that's what I've been trying. I get an uncaught reference error, "launch is not defined"

    Attaching stack trace from chrome.

    2018-10-26 11_08_29-Window.png

  4. #4

    Default

    I get the same error.

  5. #5
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    Ok, obviously ExtReact relies on something that launch bootstraps. I've often found something like this is caused by a circular reference but without actually debugging this issue I'm just speculating. So guess keep them separate is only thing, I wonder if webpack is reordering the imports too.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Similar Threads

  1. Replies: 3
    Last Post: 25 Apr 2018, 11:25 PM
  2. Sencha CMD produces final CSS file with 2 imports
    By Alexandry in forum Ext 5: Q&A
    Replies: 3
    Last Post: 9 Jul 2015, 10:48 PM
  3. Replies: 0
    Last Post: 16 Jul 2014, 2:31 AM
  4. Support of 3d transform animations and hype imports
    By glasslinux in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 26 May 2011, 7:26 PM
  5. Ext file imports on mulitple html pages !
    By ritesh.kapse in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Nov 2008, 11:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •