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

Upgraded packages #578

Closed
utf4 opened this issue Aug 17, 2020 · 10 comments
Closed

Upgraded packages #578

utf4 opened this issue Aug 17, 2020 · 10 comments

Comments

@utf4
Copy link

utf4 commented Aug 17, 2020

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
@cibernox
Copy link
Owner

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

@utf4
Copy link
Author

utf4 commented Aug 18, 2020

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

@pkimmlinger
Copy link

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

@tlockhart
Copy link

tlockhart commented Mar 16, 2021

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; }

@cibernox
Copy link
Owner

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

@bjornharrtell
Copy link

bjornharrtell commented Mar 24, 2021

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)

@Kilowhisky
Copy link
Contributor

image

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

@leils
Copy link

leils commented Apr 8, 2021

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

@mohitsud
Copy link

mohitsud commented Jun 6, 2021

anyone find a fix for it?

@mkszepp
Copy link
Collaborator

mkszepp commented Mar 9, 2024

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

@mkszepp mkszepp closed this as completed Mar 9, 2024
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

9 participants