-
Notifications
You must be signed in to change notification settings - Fork 143
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
@babel/template placeholder build error resurrection #1077
Comments
I have the same problem, i corrected it by fixing the lib version ember-cli-moment-shim": "3.7.1", however, just a quick solution! |
We're seeing this in an addon as |
Downgrading ember-cli-moment-shim isn't an option for us as it breaks our production build (terser/terser#684 (reference)). |
This seems to be fixed in 0.50.1 and adding this resolution to our
|
That's gonnaa be tricky since the latest ember-cli LTS includes |
Yes, it is quite a bad problem. @ef4 any plans on a fix so the versions can play nicely together? |
There were no significant changes to the macro system in 0.50.0. Can somebody share the contents of the value that's being passed to It is true that all copies of the macros share the state that is being inlined into the source at this spot, so additional versions being around can influence the value here. |
I'm not sure how to do that @ef4, I looked through the trace and I'm not sure where to put a debugger to get that info. |
Find this spot in the
And |
Looks a bit different, but I changed evaluate-json.js in our addon to
and the output looks like:
|
Basically it is the package's |
It seems it's very easy to reproduce:
I also tried installing |
Ah, this is the actual issue. The format of the data that ember-get-config is storing in the macros is what triggers the bug. It's not really about version skew at all. We could backport the fix and do patch releases, but we'd potentially need to manage 17 different patch releases, because the oldest embroider/macros mentioned here is 17 major releases behind. I think the biggest thing we can do to help here is to cut a 1.0 release, so that the pain of asking addons to upgrade can happen once and then they'll be on a series that we can actually support with patch releases going forward. I had been waiting to release a 1.0 until after solving some known limitations, but we're past the point where it's practical to consider this stuff prerelease. |
Ok, so 1.0 is released. Please spread the word, addons should depend on In the meantime, both yarn and npm now support overriding transitive dependencies. In the case of NPM added overrides in 8.3. Yarn has resolutions. |
Since it wasn't an actual bug I think we can close this now. Thanks for your insights and the new release! |
thanks! |
Since the release of ember-get-config v1 (which uses
@embroider/macros
v0.50.0) several people in the Discord are seeing the following errors at build time:broccoliBuilderErrorStack: Error: @babel/template placeholder "APP": Expected string substitution
This seems to be the issue that was fixed by this commit and was included in the 0.43.0 release of
@embroider/macros
.In our app the issue is triggered by
@embroider/macros
v0.41.0 which is included by the ember-element-helper addon. What's strange is that that version of the macros didn't cause issues until a v0.50.0 release was part of our node_modules folder.I'm unfamiliar with how this works so my debugging efforts didn't lead to something useful. Did anything change in the latest release that might explain this behavior? It probably worked by accident before and we should PR version bumps of the macro packages to all addons?
npm ls @embroider/macros
of our project:Discord discussion: https://discord.com/channels/480462759797063690/930822209725948004
The text was updated successfully, but these errors were encountered: