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.

Error compatibility embroider

See original GitHub issue

Environment

  • Ember Version: 3.9.0
  • Ember CLI Version: 3.9.0
  • Ember Intl Version: 3.5.2
  • Embroider 3.4.0
  • Browser(s): Chrome
  • Node Version: 10

Steps to Reproduce

ember s

jquery.js:3827 Uncaught TypeError: Cannot read property 'localeFactory' of undefined
    at Class.translationsFor (intl.js:196)
    at Class.addTranslations (intl.js:190)
    at eval (hydrate.js:33)
    at Array.forEach (<anonymous>)
    at eval (hydrate.js:31)
    at Class.init (intl.js:106)
    at Class.superWrapper [as init] (utils.js:365)
    at initialize (core_object.js:83)
    at Function.create (core_object.js:617)
    at FactoryManager.create (container.js:549)
translationsFor @ intl.js:196
addTranslations @ intl.js:190
(anonymous) @ hydrate.js:33
(anonymous) @ hydrate.js:31
init @ intl.js:106
superWrapper @ utils.js:365
initialize @ core_object.js:83
create @ core_object.js:617
create @ container.js:549
instantiateFactory @ container.js:359
lookup @ container.js:287
lookup @ container.js:131
lookup @ container_proxy.js:78
initialize @ initializer.js:17
(anonymous) @ index.js:132
Vertices.each @ dag-map.js:228
Vertices.walk @ dag-map.js:142
DAG.each @ dag-map.js:72
DAG.topsort @ dag-map.js:80
_runInitializer @ index.js:147
runInstanceInitializers @ index.js:130
_bootSync @ instance.js:108
didBecomeReady @ application.js:689
invoke @ backburner.js:335
flush @ backburner.js:226
flush @ backburner.js:423
_end @ backburner.js:957
end @ backburner.js:707
_run @ backburner.js:1010
_join @ backburner.js:984
join @ backburner.js:757
join @ index.js:165
(anonymous) @ index.js:260
mightThrow @ jquery.js:3534
process @ jquery.js:3602
setTimeout (async)
jQuery.readyException @ jquery.js:3826
(anonymous) @ jquery.js:3846
mightThrow @ jquery.js:3534
process @ jquery.js:3602
setTimeout (async)
(anonymous) @ jquery.js:3640
fire @ jquery.js:3268
fireWith @ jquery.js:3398
fire @ jquery.js:3406
fire @ jquery.js:3268
fireWith @ jquery.js:3398
process @ jquery.js:3622
setTimeout (async)
(anonymous) @ jquery.js:3640
fire @ jquery.js:3268
fireWith @ jquery.js:3398
fire @ jquery.js:3406
fire @ jquery.js:3268
fireWith @ jquery.js:3398
ready @ jquery.js:3878
completed @ jquery.js:3888
Show 5 more frames

this erros happens on this function

/** @public **/
  translationsFor(localeName) {
    return this._adapter.localeFactory(Object(_private_normalize_locale__WEBPACK_IMPORTED_MODULE_4__["default"])(localeName));
  },

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
martony38commented, Sep 16, 2019

I am still seeing this error with ember-intl@4.0.1 when using embroider (I am splitting routes). I was able to fix it by adding the following package rule to ember-cli-build.js:

packageRules: [
  {
    package: 'ember-intl',
    semverRange: '^4.0.1',
    addonModules: {
      'services/intl.js': { 
        dependsOnModules: ['../adapters/default.js']
      }
    }
  },
  ...
]
1reaction
ghostcommented, Jun 11, 2019

Upgrading to ember-intl@4.0.0-beta.10 fixes this error for me. embroider version:

		"@embroider/compat": "^0.3.5",
		"@embroider/core": "^0.3.5",
		"@embroider/webpack": "^0.3.5",

Should we close this by recommending using the latest version of ember-intl? That wouldn’t be helpful for those needing to support < 4.0. I have no qualms updating our app but that is one user’s opinion. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

DESLOADR.exe is incompatible for Bernina Embroidery ...
I am trying to run the Bernina Embroider Software V6 program and after I run the compatibility mode I get an error: DESLOADR...
Read more >
v2 Addon Format (Embroider Compatibility)
v2 Addon Format (Embroider Compatibility) Summary This RFC defines a new package format that is designed to make Ember packages (meaning ...
Read more >
System Error or "Exception Access Violation ...
1) on your Desktop, right-click on the Hatch Embroidery software shortcut · 2) in the right-click menu, click on the "Properties" menu.
Read more >
Frequently Asked Questions V8 - Software
The new BERNINA Embroidery Software 8 includes a whole new range of new features and 3D ... How can I solve the installation...
Read more >
Design does not appear on the machine after transferring it
- The design is not in the correct format. - The file name cannot be identified. - The number of colors or patterns...
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