Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ember-cli-migrator “Do not know how to import App” error #71

Open
DoryZi opened this issue Jun 23, 2015 · 1 comment
Open

ember-cli-migrator “Do not know how to import App” error #71

DoryZi opened this issue Jun 23, 2015 · 1 comment

Comments

@DoryZi
Copy link

DoryZi commented Jun 23, 2015

0
down vote
favorite
I'm migrating a custom made Ember project (I do not use a build system, but actually created my own grunt script). When I run ember-cli-migrate but I'm getting the following error:

Git Move Moving templates/users.hbs to app\templates\users.hbs
Do not know how to import App
Do not know how to import App
Do not know how to import App
Do not know how to import App
Do not know how to import App
Do not know how to import App
Do not know how to import App
Do not know how to import App

assert.js:86
throw new assert.AssertionError({
^
AssertionError: {kind: var, declarations: [object Object], loc: null, type: Vari
ableDeclaration, comments: null} does not match field "init": Expression | null
of type VariableDeclarator
at add (c:\Users\DoryZ\AppData\Roaming\npm\node_modules\ember-cli-migrator\n
ode_modules\recast\node_modules\ast-types\lib\types.js:525:28)
at c:\Users\DoryZ\AppData\Roaming\npm\node_modules\ember-cli-migrator\node_m
odules\recast\node_modules\ast-types\lib\types.js:539:17
at Array.forEach (native)
at Object.defineProperty.value [as variableDeclarator](c:UsersDoryZAppDa
taRoamingnpmnode_modulesember-cli-migratornode_modulesrecastnode_modules
ast-typeslibtypes.js:538:30)
at Context.MigratorVisitorPrototype.visitAssignmentExpression (c:\Users\Dory
Z\AppData\Roaming\npm\node_modules\ember-cli-migrator\lib\migrator-visitor.js:71
:67)
at Context.invokeVisitorMethod (c:\Users\DoryZ\AppData\Roaming\npm\node_modu
les\ember-cli-migrator\node_modules\recast\node_modules\ast-types\lib\path-visit
or.js:306:43)
at Visitor.PVp.visitWithoutReset (c:\Users\DoryZ\AppData\Roaming\npm\node_mo
dules\ember-cli-migrator\node_modules\recast\node_modules\ast-types\lib\path-vis
itor.js:180:28)
at NodePath.each (c:\Users\DoryZ\AppData\Roaming\npm\node_modules\ember-cli-
migrator\node_modules\recast\node_modules\ast-types\lib\path.js:96:22)
at visitChildren (c:\Users\DoryZ\AppData\Roaming\npm\node_modules\ember-cli-
migrator\node_modules\recast\node_modules\ast-types\lib\path-visitor.js:199:14)
at Visitor.PVp.visitWithoutReset (c:\Users\DoryZ\AppData\Roaming\npm\node_mo
dules\ember-cli-migrator\node_modules\recast\node_modules\ast-types\lib\path-vis
itor.js:188:16)
any help would be appreciated..

and this is what user.hbs looks like:

    <h2 class="internal-page-header">
        <ul class="nav nav-pills projects-nav">
            {{#nav-view}} {{#link-to 'users.index'}}Active{{/link-to}} {{/na

v-view}}
{{#nav-view}} {{#link-to 'users.available'}}Available{{/link-to}
} {{/nav-view}}
{{#nav-view}} {{#link-to 'users.recruiting'}}Recruiting{{/link-t
o}} {{/nav-view}}
{{#nav-view}} {{#link-to 'users.disabled'}}Disabled{{/link-to}}
{{/nav-view}}

        </ul>
        <ul class="nav nav-pills projects-nav pull-right">
            {{#if controllers.application.isAdmin}}
              {{#if showSearch}}
                {{#nav-view}}
                    {{#link-to 'users.new'}}
                        <div class="min-width-100"><span class="entypo-plus-

circled"> Add Person


{{/link-to}}
{{/nav-view}}
{{/if}}
{{/if}}
  • {{search-box action="handleSearch" id="searchBox" showSearch
    =showSearch}}

  •     </h2>
    
        <div class="projects-body-container">
            {{outlet}}
        </div>
    </div> <!-- end col div -->
    

    I've also opend this on stackoverflow:

    http://stackoverflow.com/questions/30999440/ember-cli-migrator-do-not-know-how-to-import-app-error

    @fivetanley
    Copy link
    Owner

    There's a chance that it's processing the compiled handlebars file maybe. Without seeing more of the source code I'm not sure what's happening here sorry. The migrator should not be parsing handlebars files.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants