-
Notifications
You must be signed in to change notification settings - Fork 24
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
runtime require inconsistency #67
Comments
FWIW I think its an issue with the webpack require implementation and the following "quick fix" in DojoAMDMainTemplate.runtime.js appears to work:
|
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
In WebPack calling require([x, y, z]), callback); where "y" does not exist, throws an exception. In Dojo the same call would still callback with a valid x + z. Fixes OpenNTFGH-67 Signed-off-by: Gordon Smith <[email protected]>
GH-67 Unexpected webpack require behaviour
Re-opening this because I don't believe we have it quite right yet. Dojo doesn't throw an exception in the require call if a require dependency cannot be loaded, but it also does not call the require callback if any of the modules cannot be loaded and initialized. Please create a new PR to fix this. You could revert the change you made to |
I will do - (and I did just sanity check the above behavior and can confirm it is correct for my en-gb scenario). FWIW I was basing my observed behavior on the "define" section. Not the runtime require case! I have opened a new issue: #69 which more accurately describes my original issue, and have edited this issue to reflect the issue we are currently fixing. |
Rollback OpenNTFGH-67 changes Calling require([x, y, z], callback) where any module is missing, should _not_ call the callback or throw an exception. Signed-off-by: Gordon Smith <[email protected]>
Rollback OpenNTFGH-67 changes Calling require([x, y, z], callback) where any module is missing, should _not_ call the callback or throw an exception. Signed-off-by: Gordon Smith <[email protected]>
Rollback OpenNTFGH-67 changes Calling require([x, y, z], callback) where any module is missing, should _not_ call the callback or throw an exception. Signed-off-by: Gordon Smith <[email protected]>
Rollback OpenNTFGH-67 changes Calling require([x, y, z], callback) where any module is missing, should _not_ call the callback or throw an exception. Signed-off-by: Gordon Smith <[email protected]>
GH-67-2 runtime require behaviour
Runtime require error handling an unit tests added with #71 |
<edit - I initially thought this was an IE11 issue, but I can reproduce in chrome>
Opening the sample application test page fails when locale is set to en-gb (https://openntf.github.io/dojo-webpack-plugin-sample/test.html):
Steps to reproduce:
Add the following locale override to dojo config:
Rebuild and open.
There are two issue going on, the missing locale is covered by: https://github.com//issues/69 and this issue will focus on the inconsistent behaviour of the runtime require call.The text was updated successfully, but these errors were encountered: