Skip to content
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

Breaks in Ember 3.25 (and perhaps earlier) apps #105

Open
tomwayson opened this issue Apr 7, 2021 · 0 comments
Open

Breaks in Ember 3.25 (and perhaps earlier) apps #105

tomwayson opened this issue Apr 7, 2021 · 0 comments

Comments

@tomwayson
Copy link
Member

Somewhere between ember 3.16 and 3.25, something changed and it appears to cause the esri-loader script to be included in the files that we replace require() and define().

STR:

  • create a new 3.25 app
  • add ember-esri-loader
  • call loadModules()

You'll get the following error:

image

Digging into that you see that it fails on this line in esri-loader.js:

image

which should be

var errorHandler = window['require'].on('error', reject);

I also notice that yarn test:all fails on the release and canary scenarios, so that may be related, but it also failed on the 2.x scenario, so 🤷 :

------ RESULTS ------

Scenario ember-lts-2.16: FAIL
Command run: ember test
with env: {
  "EMBER_OPTIONAL_FEATURES": "{\"jquery-integration\":true}"
}
Scenario ember-lts-2.18: SUCCESS
Command run: ember test
with env: {
  "EMBER_OPTIONAL_FEATURES": "{\"jquery-integration\":true}"
}
Scenario ember-release: SUCCESS
Command run: ember test
Scenario ember-beta: FAIL
Command run: ember test
Scenario ember-canary: FAIL
Command run: ember test
Scenario ember-default: SUCCESS
Command run: ember test
Scenario ember-default-with-jquery: SUCCESS
Command run: ember test
with env: {
  "EMBER_OPTIONAL_FEATURES": "{\"jquery-integration\":true}"
}

3 scenarios failed
4 scenarios succeeded
7 scenarios run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant