Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Upgrading to latest cli (1.0.0-beta13) throws error loading require local dependency #1054
I'm submitting a bug report
Please tell us about your environment:
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.
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.
referenced this issue
Feb 19, 2019
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..
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