ember.js: [Bug] Some addons fail ember:try scenarios with ember-release (3.25) with loc$$1.sliceStartChars is not a function
🐞 Describe the Bug
Test fail because as of this writing loc$$1.sliceStartChars is not a function. Going deeper
🔬 Minimal Reproduction
This pull request shows the error https://github.com/adopted-ember-addons/ember-light-table/pull/685
😕 Actual Behavior
Going deeper into the stack
🤔 Expected Behavior
It passes tests like all versions before and after ember-source 3.25
➕ Additional Context
Full stack trace:
- broccoliBuilderErrorStack: TypeError: loc$$1.sliceStartChars is not a function
at ElementNormalizer.classifyTag (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14700:32)
at ElementNormalizer.ElementNode (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14510:23)
at StatementNormalizer.normalize (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14361:52)
at /home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14088:25
at Array.map (<anonymous>)
at normalize (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14087:67)
at precompileJSON (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:6070:44)
at precompile (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:6110:27)
at Object.precompile (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:20344:37)
at Object.template (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-font-awesome/node_modules/ember-cli-htmlbars/utils.js:29:40)
- code: [undefined]
- codeFrame: loc$$1.sliceStartChars is not a function
- errorMessage: ember-font-awesome/components/fa-icon/template.hbs: loc$$1.sliceStartChars is not a function
in /tmp/broccoli-6377QHsgFLGoZe2W/out-221-funnel_funnel_ember_font_awesome_addon
at broccoli-persistent-filter:TemplateCompiler
- errorType: Template Compiler Error
- location:
- column: [undefined]
- file: ember-font-awesome/components/fa-icon/template.hbs
- line: [undefined]
- treeDir: /tmp/broccoli-6377QHsgFLGoZe2W/out-221-funnel_funnel_ember_font_awesome_addon
- message: ember-font-awesome/components/fa-icon/template.hbs: loc$$1.sliceStartChars is not a function
in /tmp/broccoli-6377QHsgFLGoZe2W/out-221-funnel_funnel_ember_font_awesome_addon
at broccoli-persistent-filter:TemplateCompiler
- name: Error
- nodeAnnotation: [undefined]
- nodeName: broccoli-persistent-filter:TemplateCompiler
- originalErrorMessage: loc$$1.sliceStartChars is not a function
- stack: TypeError: loc$$1.sliceStartChars is not a function
at ElementNormalizer.classifyTag (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14700:32)
at ElementNormalizer.ElementNode (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14510:23)
at StatementNormalizer.normalize (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14361:52)
at /home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14088:25
at Array.map (<anonymous>)
at normalize (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:14087:67)
at precompileJSON (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:6070:44)
at precompile (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:6110:27)
at Object.precompile (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-source/dist/ember-template-compiler.js:20344:37)
at Object.template (/home/travis/build/adopted-ember-addons/ember-light-table/node_modules/ember-font-awesome/node_modules/ember-cli-htmlbars/utils.js:29:40)
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 19 (6 by maintainers)
Any workarounds? Getting the same issue with ember-popper…
@skaverg which version of ember popper are you using? For me, this error was from a package called ‘ember-attacher’ which used an older version of the ember popper, when updated the ember-attacher to 1.3.0 (which is the latest version), it worked for me (I was upgrading ember-cli from 3.20 to 3.28). It updated the ember-popper to 0.11.3. You may try this.
Any update on this issue, as more of us start having it when upgrading to 3.28 ?
error.dump.1894159c13b509344c3566a5fdd1b364.log
trying to upgrade from 3.24 to 3.28.8 and ran into the same error.
WIP on branch: https://github.com/puzzle/cryptopus/tree/ember-3.28-upgrade
any news on how to fix this?
I think ember-popper is creating this issue
Getting this error in Ember 3.28.8.