placeholder "APP": Expected string substitution
See original GitHub issueHello,
After upgrading to 0.3.0 building results in:
$ ember build
Environment: development
cleaning up...
Build Error (broccoli-persistent-filter:Babel > [Babel: @embroider/macros]) in @embroider/macros/runtime.js
/home/vihai/src/kamaji-gui/@embroider/macros/runtime.js: @babel/template placeholder "APP": Expected string substitution
I am using Ember 4.1 without embroider (built with app.toTree()
).
If I enable embroider (packages + compatBuild) it builds successfully.
Found this discussion:
https://github.com/embroider-build/embroider/issues/1077
…but I didn’t understand where the issue lies.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
babel/template tries to replace uppercase strings · Issue #8067
In this case, you have two easy options: Use placeholderPattern: false so it stops searching for replacement patterns entirely, which should ...
Read more >Text like PlaceHolder | Apple Developer Forums
3 at each character typed, substitute in the String if valid ; use : func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, ...
Read more >Avoid replace placeholder found in replacement string
Any custom replacement logic should be implemented with preg_replace_callback , for example: $params = ["first param", "second param ?
Read more >Don't Use The Placeholder Attribute - Smashing Magazine
Placeholder help content is limited to just a string of static text, and that may not always be sufficient to communicate the message....
Read more >string interpolation - format string output - Microsoft Learn
Beginning with C# 10, you can use string interpolation to initialize a constant string. All expressions used for placeholders must be constant ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No worries, it’s a messy issue and one I’ve been dealing with in our own apps all week. I’m glad you found your culprit! I’m going to close this, but feel free to re-open if it turns out there is something we need to do here.
I don’t think the nesting of your addon matters if you do
owner.resolveRegistration('config:environment')
. I think that should always return the app’s config.Anyhow,
ember-get-config
v2 was just released. At first glance, it seems to address the issues mentioned above.EDIT: afaict, v2 still has (some of) the same issues.