You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the project I use number of JS plugins dependent on moment.js library. Some of them (e.g. Pikaday, Angular datepicker or Bootstrap daterangepicker) try to load moment.js module with requireJS using the following code require('moment')
Since Grails Asset Pipeline 2.10.0 this particular code causes that my build fails with error:
Execution failed for task ':Consult:assetCompile'.
> Cannot cast object '[Digest Input Stream] MD5 Message Digest from SUN, <initialized>
' with class 'java.security.DigestInputStream' to class 'java.io.ByteArrayInputStream'
Everything works fine with asset pipeline version 2.9.5 and older. Also other uses of require function in JS code - e.g. require('jquery') - do not cause any issues.
The text was updated successfully, but these errors were encountered:
In the project I use number of JS plugins dependent on moment.js library. Some of them (e.g. Pikaday, Angular datepicker or Bootstrap daterangepicker) try to load moment.js module with requireJS using the following code
require('moment')
Since Grails Asset Pipeline 2.10.0 this particular code causes that my build fails with error:
Execution failed for task ':Consult:assetCompile'.
Cannot cast object '[Digest Input Stream] MD5 Message Digest from SUN,
' with class 'java.security.DigestInputStream' to class 'java.io.ByteArrayInputStream'
Everything works fine with asset pipeline version 2.9.5 and older. Also other uses of require function in JS code - e.g. require('jquery') - do not cause any issues.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I'm using 2.11.6 and mine fails too:
Execution failed for task ':assetCompile'.
Cannot cast object '[Digest Input Stream] MD5 Message Digest from SUN,
' with class 'java.security.DigestInputStream' to class 'java.io.ByteArrayInputStream'
In the project I use number of JS plugins dependent on moment.js library. Some of them (e.g. Pikaday, Angular datepicker or Bootstrap daterangepicker) try to load moment.js module with requireJS using the following code
require('moment')
Since Grails Asset Pipeline 2.10.0 this particular code causes that my build fails with error:
Everything works fine with asset pipeline version 2.9.5 and older. Also other uses of require function in JS code - e.g.
require('jquery')
- do not cause any issues.The text was updated successfully, but these errors were encountered: