-
-
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
Inconsistent build across machines when building a production bundle using aurelia cli #424
Comments
I built a build with a "dev" environment. This is the error I get from Firefox:
|
Might be related to this (#378), not sure. #378 is a problem because the hashes change, and the hashes only change because the source has changed. So if the problem here truly is that the vendor bundle source has changed, then these are related. However, I'd imagine that the order that the vendor bundle has shouldn't be as big a problem, as long as all those modules are in there. |
Seeing similar issue. Looks like on Linux I get the follow which works: if (ins.shadowSlot || ins.lifting) {
content.insertBefore(_aureliaPal.DOM.createComment('view'), firstChild);
} But on OSX: if (ins.shadowSlot || ins.lifting || ins.elementInstruction !== null && !ins.elementInstruction.anchorIsContainer) {
content.insertBefore(_aureliaPal.DOM.createComment('view'), firstChild);
} ^which results in |
@mijdavis2, that seems like your two projects are getting different files completely. One of the issues that currently appears with the vendor bundle is the ordering of files change, but the files themselves haven't been changing. Could be that maybe some babel config is different and compiling things differently. But more likely (I think) is that the modules that are being downloaded aren't the same across your system. If you're using NPM, it uses cache versions first, before downloading a different version. So if your Mac has a cached version that's within the scope of your options in the package file, it'll use that, while if your Linux box has a newer/different cached version, NPM will use that. So you can have an identical package file, but have different machine specific files downloaded. One of the things you can try to do to remedy this is clearing your npm cache on both your projects ( Another approach is the one that we use in the office now, which is using Yarn. It has a lock file (similar to NPM Shrink-wrap) that makes sure that the versions across machines are going to be the same. I'd look into that. |
My guess is that this is fixed with #427. |
Fresh clone from master worked for me. |
Is this still an issue for you @johangwbasson ? |
We have resolved it by writing our own gulp file. Thank you |
Are you able to determine if the original issue is still a problem for you @johangwbasson (I know you solved it a different way, just wanting to know if the standard way of building is working now)? If not, I think we might be okay to close this. |
I'm submitting a bug report
0.22 (cli)
Please tell us about your environment:
Operating System:
Debian Linux, kernel 4.8.7
Node Version:
6.9.1
NPM Version:
3.10.8
Browser:
Tested on Chrome & Firefox
Language:
TypeScript 2.0.10
Current behavior:
I'm trying to setup a jenkins job to automate builds of our aurelia app. When I build the app locally it works 100%, but when I build it on jenkins using the same process, then the files in the script directory is different.
Expected/desired behavior:
The build on my local machine and the Jenkins machine should be consistent
What is the expected behavior?
The build on my local machine and the Jenkins machine should be consistent
What is the motivation / use case for changing the behavior?
Build should be consistent across machines
The following procedure is used to build the build (locally as well as on jenkins):
The following error is shown in the browser:
The Jenkins environment is running docker containers with the tools installed. Both local and Jenkins machine have exactly the same versions of node, npm and aurelia.
The text was updated successfully, but these errors were encountered: