-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Upgrading to latest cli (1.0.0-beta13) throws error loading require local dependency #1054
Comments
There is no issue for me. https://github.com/huochunpeng/resize-demo You could have some other uncommon setup. You can try migrate to a clean project created out of BTW, it's unnecessary to have the explicit deps config for aurelia-resize and element-resize-detector. Latest cli can work it out automatically. |
By adding the below to aurelia.json on a newly generated Hello World app... I get it to fail, but if I remove it and let aurelia build it without - then it creates the bundle differently and it works..
|
I referenced by name only and it works... We break up some 3rd party into different bundles for just in time loading so that is important but the following definition in aurelia.json seems to work
|
referencing by name seems to fix both of the issues I had reported |
The problem is the element-resize-detector dist file. Without explicit config, element-resize-detector uses main file I will have a look what went wrong when tracing |
The fix will be in next release. |
I'm submitting a bug report
1.0.0-beta13
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
10.0.0
NPM Version:
6.8.0 (initially tried with 5.6.0)
Browser:
Failed on first one tried - Chrome 71.0.3578.98 (Official Build) (64-bit)
Language:
ESNext
Loader/bundler:
RequireJS
Current behavior:
It's failing to load some modules which looks to be because of a local require reference inside a bundled dist AMD built file... I've come across 2. One with aurelia-resize use of element-resize-detector and another is jshint which we actually use at runtime not just development. This works with the amodro tracer used with [email protected]
Probably the easiest to debug and recreate is the aurelia-resize... The following is included in the vendor bundle and it fails to load.
As best I can tell the element-resize-detector is failing on a require statement inside the element-resize-detector.
The following line is throwing the error
With the following stacktrace:
JSHint was failing on something similar
throws same error.
What is the expected behavior?
Should load and work.
What is the motivation / use case for changing the behavior?
Tech currency... Trying to migrate to latest aurelia and babel 7 code.
The text was updated successfully, but these errors were encountered: