wulfsolter / angular2-signaturepad

Angular2 Component for szimek / signature_pad
MIT License
176 stars 157 forks source link

Error: Module not found: Error: Can't resolve 'signature_pad' (v4.0.1 with Angular v13 Error) #129

Open marcoramzy opened 2 years ago

marcoramzy commented 2 years ago

After upgrade to version 4.0.1: there is a problem in the package itself (although removing (node_modules & cache)) cause to throw an error on serving the app ( Error during "npm start" ): https://www.screencast.com/t/Xa0HslDOD2y

Error details:
./node_modules/angular2-signaturepad/fesm2015/angular2-signaturepad.mjs:3:0-52 - Error: Module not found: Error: Can't resolve 'signature_pad' in '.\node_modules\angular2-signaturepad\fesm2015'

Note: I'm using Angular version 13.2.2

Current solution: Completed working with old version 3.0.4 (which is compatible with no errors) ..till this error is fixed in next releases!

razarahil commented 2 years ago

I'm also facing the same error, even 4.0.2 is not working. Only 3.0.4 works.

JensUweB commented 2 years ago

Can confirm. I have the same problem but with fesm2020 & Angular 13.0.0. ./node_modules/angular2-signaturepad/fesm2020/angular2-signaturepad.mjs:3:0-52 - Error: Module not found: Error: Can't resolve 'signature_pad' in '/app-path/node_modules/angular2-signaturepad/fesm2020'

Version 3.0.4 works as expected.

Edit: Never mind. I was using an older node version. It works with node version 16 nvm use 16 for me.

leo00723 commented 2 years ago

Same error on Angular 13.2.6