ember-basic-dropdown icon indicating copy to clipboard operation
ember-basic-dropdown copied to clipboard

Upgraded packages

Open utf4 opened this issue 5 years ago • 9 comments

I upgraded some of the packages in a project i was working on, now i am seeing this error when starting server

Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in ember-basic-dropdown/templates/components/basic-dropdown-content.hbs

Compile Error: ...attributes can only be used in an element

utf4 avatar Aug 17 '20 13:08 utf4

Could you give more information? Ember version, version of ember-basic-dropdown, etc..

cibernox avatar Aug 17 '20 16:08 cibernox

ember-cli => 3.2.0 ember-source => 3.2.2 ember-basic-dropdown => 2.0.15

utf4 avatar Aug 18 '20 06:08 utf4

Hi, got the same issue after upgrading ember-cli package from 3.2.0 to 3.22.0.

pkimmlinger avatar Nov 05 '20 15:11 pkimmlinger

Any update on this? I'm getting the following error after ember 3.25.2 upgrade: errorMessage: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs: Cannot read property 'type' of undefined in /tmp/broccoli-2011rMhW5Q23vF5N/out-0859-colocated_template_processor The error is thrown by callee.head.type, in ember-template-compiler, see below: _proto39.isFreeVar = function isFreeVar(callee) { if (callee.type === 'PathExpression') { if (callee.head.type !== 'VarHead') { return false; }

tlockhart avatar Mar 16 '21 12:03 tlockhart

I didn't know this was still an issue. I'll look into it.

cibernox avatar Mar 16 '21 13:03 cibernox

I also got the one mentioned above:

Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in ember-basic-dropdown/templates/components/basic-dropdown-content.hbs

Cannot read property 'type' of undefined

This can reproduced by upgrading to ember-source to 3.25.0 on the v2 branch and attempting a build. 3.24.3 appears to work.

Full trace from log file:

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: Cannot read property 'type' of undefined
    at BlockContext.isFreeVar (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14176:25)
    at BlockContext.isFreeVar (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14182:21)
    at BlockContext.resolutionFor (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14153:16)
    at StatementNormalizer.BlockStatement (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14467:35)
    at StatementNormalizer.normalize (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14384:23)
    at /home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14488:27
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14487:61)
    at StatementNormalizer.BlockStatement (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14476:23)
    at StatementNormalizer.normalize (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14384:23)
  - code: [undefined]
  - codeFrame: Cannot read property 'type' of undefined
  - errorMessage: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs: Cannot read property 'type' of undefined
        in /tmp/broccoli-709070gZtDdzwoUHsB/out-094-funnel_funnel_ember_basic_dropdown_addon
        at broccoli-persistent-filter:TemplateCompiler
  - errorType: Template Compiler Error
  - location:
    - column: [undefined]
    - file: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs
    - line: [undefined]
    - treeDir: /tmp/broccoli-709070gZtDdzwoUHsB/out-094-funnel_funnel_ember_basic_dropdown_addon
  - message: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs: Cannot read property 'type' of undefined
        in /tmp/broccoli-709070gZtDdzwoUHsB/out-094-funnel_funnel_ember_basic_dropdown_addon
        at broccoli-persistent-filter:TemplateCompiler
  - name: BuildError
  - nodeAnnotation: [undefined]
  - nodeName: broccoli-persistent-filter:TemplateCompiler
  - originalErrorMessage: Cannot read property 'type' of undefined
  - stack: TypeError: Cannot read property 'type' of undefined
    at BlockContext.isFreeVar (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14176:25)
    at BlockContext.isFreeVar (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14182:21)
    at BlockContext.resolutionFor (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14153:16)
    at StatementNormalizer.BlockStatement (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14467:35)
    at StatementNormalizer.normalize (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14384:23)
    at /home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14488:27
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14487:61)
    at StatementNormalizer.BlockStatement (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14476:23)
    at StatementNormalizer.normalize (/home/bjorn/code/ember-basic-dropdown/node_modules/ember-source/dist/ember-template-compiler.js:14384:23)

bjornharrtell avatar Mar 24 '21 18:03 bjornharrtell

image

Upgrading to ember > 3.25 does this to me. If i drop below that everything still works.

Kilowhisky avatar Apr 02 '21 18:04 Kilowhisky

Also getting this issue, using ember-source 3.1.4 and dropdown 2.0.15 Goes as far back as ember-paper beta.27

leils avatar Apr 08 '21 21:04 leils

anyone find a fix for it?

mohitsud avatar Jun 06 '21 02:06 mohitsud

Closing issue, cause it was maybe already fixed with newer addon version. If occures with current version, feel free to reopen this issue

mkszepp avatar Mar 09 '24 13:03 mkszepp