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.

Rebuild not working with embroider (translation file changes will be ignored)

See original GitHub issue

When i add/edit a translation the rebuild with embroider is not working. There is always necessary to stop an restart ember s.

Original issue: https://github.com/embroider-build/embroider/issues/718

Environment

  • Ember Version: 3.25.2
  • Ember CLI Version: 3.25.2
  • Ember Intl Version: 5.6.2
  • Embroider: 0.37.0
  • Node Version: 14.15.4
  • OS: Windows x64 / Linux

Steps to Reproduce

  1. npm install -g ember-cli
  2. ember new test-app
  3. npm i @embroider/core @embroider/compat @embroider/webpack
  4. edit ember-cli-build.js (specified in Readme.md)
  5. ember install ember-intl + required file changes (see ember-intl quickstart)
  6. ember s
  7. modify a translation file

Workaround

Set environment variable EMBROIDER_REBUILD_ADDONS=ember-intl

_Originally posted by @ef4 in https://github.com/embroider-build/embroider/issues/718#issuecomment-796914941_

It looks like ember-intl considers your translations part of itself (they live inside it’s own module namespace instead of the app’s).

Try setting the environment variable EMBROIDER_REBUILD_ADDONS=ember-intl. That will probably work around this problem.

ember-intl should consider refactoring so that translations stay in the app’s module namespace.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ef4commented, Mar 13, 2021

To be clear, it’s not imminent. I don’t think anybody needs to rush into doing anything, and no support is going to get dropped any time soon.

But taking the holistic view of recent RFCs like strict mode templates plus the embroider one linked above, it’s pretty clear to me that new feature development is avoiding the runtime resolver, and that’s what motivates treeForApp in the first place.

I’m totally supportive of addon authors taking a wait-and-see approach until they get clear enough guidance. I only brought up the future compatibility concerns in the context of “if you were going to rewrite anyway…”.

0reactions
NullVoxPopulicommented, Aug 4, 2022

would it make sense to provide an unplugin for intl for the build stuff? that way ember-intl is then mostly the service, helper, and then maintains the unplugin for folks to put in their webpack/vite/etc configs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebuild not working with ember-intl (translation file changes ...
When i add/edit a translation file from ember-intl (example: my-project/translations/en.json) the rebuild is not starting.
Read more >
Stitch Era - trouble shooting - EduTech Wiki
10 Cannot export the machine embroidery file. If you cannot export to a machine format, then not all stitches are generated. Hit F9...
Read more >
University of Pennsylvania on Instagram: “The Penn Integrates ...
The Penn Integrates Knowledge (PIK) program was designed with the idea that some of today's toughest challenges can be... more. View all 14...
Read more >
Inkscape to Embroidery Machine : 10 Steps - Instructables
1. First Open Inkscape :)(If you have NOT installed the new features do this step)*Go to the extension tab and look for Ink/Stich...
Read more >
User's Guide - Windows - PREMIER+™ 2 Embroidery System
The software to which this User's Guide relates is subject to change without notice. ... associations, select Do Not Associate All Embroidery Files....
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