Error: 'Md5' is not exported by node_modules\ts-md5\dist\md5.js
aijingsun6 opened this issue · comments
when i use rollup funciton in angular project,then i got an error, logs below:
...
Error: 'Md5' is not exported by node_modules\ts-md5\dist\md5.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
...
then
i modofy file dist\md5.js
var Md5 ... to export var Md5
it works
yours
I released a new version of the project. Can you check if this resolves the issue?
v1.2.2
@stakach I'm getting this error message
Error: Cannot find module 'ts-md5'
when using webpack dll plugin. I think this issue has to do with not having a main:
entry in package.json?
Yes! I just confirmed that adding a "main": "dist/md5.js"
solves this error.
Thanks, I've published a new version
@stakach , i have update to v1.2.3, but when i use rollup funciton in angular project, still got an error
@aijingsun6 do you solved it?