Rebuild not working with embroider (translation file changes will be ignored)
See original GitHub issueWhen 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
npm install -g ember-cli
ember new test-app
npm i @embroider/core @embroider/compat @embroider/webpack
- edit
ember-cli-build.js
(specified in Readme.md) ember install ember-intl
+ required file changes (see ember-intl quickstart)ember s
- 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:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
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…”.
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?