question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

placeholder "APP": Expected string substitution

See original GitHub issue

Hello,

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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jrjohnsoncommented, Jan 24, 2022

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.

0reactions
bertdeblockcommented, Apr 22, 2022

getting the config from and add-on that may be consumed by other addons

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found