dev-resources.site
for different kinds of informations.
unsupported ambiguity between helper and component
Published at
4/9/2024
Categories
ember
javascript
modern
Author
nullvoxpopuli
Author
13 person written this
nullvoxpopuli
open
This error occurs when you're progressing towards a modern ember app and have the following situation in your embroider options:
staticHelpers: true,
staticComponents: false,
and you reference a helper, such as {{t}}
from ember-intl
.
Here is the full text:
<path to source of issue>:
unsupported ambiguity between helper and component:
this use of "{{t}}" could be helper "{{ (t) }}" or
component "<T />", and your settings for
staticHelpers and staticComponents do not agree.
Either switch to one of the unambiguous forms,
or make staticHelpers and staticComponents agree,
or use a "disambiguate" packageRule to work around
the problem if its in third-party code you cannot
easily fix.
in <path to source of issue>
To resolve, in your ember-cli-build.js
, you want:
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
// ...
staticHelpers: true,
staticComponents: true,
// ...
});
When both of these options are true, there is no more ambiguity with curly syntax ({{ }}
) -- if it exists, it will be either a helper or a component, we don't need to guess at runtime anymore.
modern Article's
17 articles in total
Speak to Connect: Redefining Persuasion in the Modern Workplace
read article
The Tree Shaking Journey in Angular: A Deep Dive
read article
Transform Your Space with Modern Rugs: A Guide to Elevating Your Home Decor
read article
The Rise of Remote Executive Assistants: A Game-Changer for Modern Businesses
read article
The Importance of Accessibility in Modern Web Development
read article
Citizen Developers Rise Up: The LCNC Revolution đ
read article
unsupported ambiguity between helper and component
currently reading
Grogie â Modern Serif Font
read article
4 Essentials Features To Add To Your Cabinets
read article
Circle - Free React Theme
read article
7 Brilliant Ways To Design Modern Minimalist Business Logo Design For Chees Brand.
read article
10 Tren IT di Tahun 2021, Dari Artificial Intelligence (AI) Sampai Virtual Reality (VR) ~ awgroupchannel.my.id Šī¸ 2021
read article
What Makes a Website's Design "Modern"?
read article
Modern desk setup for developers in 2020
read article
Modern Build in Nuxt.js
read article
Maximizing Jquery: Modern Web Programming Techniques (Part 1)
read article
Code to go: helping you find updated snippets for common use cases
read article
Featured ones: