Intl config not being read
See original GitHub issueAt least on Windows (haven’t tested elsewhere), in readConfig
function in index.js
the config path is wrong
var configPath = path.join(project.root, project.configPath(), '..', 'ember-intl.js');
leads to paths like C:\Project\C:\Project\config\environment\..\ember-intl.js
, as project.configPath()
returns the full path (in 2.6.0). Intl config file is then not found and read.
Changing the line to
var configPath = path.join(project.configPath(), '..', 'ember-intl.js');
fixes the problem.
ember-intl: 2.11.1 ember: 2.6.0.beta.4 ember-cli: 2.6.0-beta.3 node: 6.2.1 os: win32 x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can not read Config File - Stack Overflow
I was wondering if someone would be able to have a look and let me know if I am doing something wrong. Please...
Read more >[React Intl] An `id` must be provided to format a ... - GitHub
Current error message when something got screwed: [React Intl] An id must be provided to format a message. - No line number, no...
Read more >Configure International Settings in Windows | Microsoft Learn
For information about using DISM to configure international settings in an offline Windows image, see DISM Languages and International Servicing ...
Read more >Imperative API | Format.JS
This useIntl hook does not expect any option as its argument when being called. Typically, here is how you would like to use:...
Read more >React Intl | Testing Library
If you're using React-Intl in your project, and you need to load a ... It's not obvious what the text actually is when...
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
I’ll keep 2.11.2 published since it fixes it for POSIX users, I’ll need to figure out a way to spin up a VM for windows.
There should be free VMs here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/windows/ Haven’t tried them, but these should be valid for 90 days, if you create a VM snapshot after the install you can revert to it after the VM expires.