angular-signature-pad icon indicating copy to clipboard operation
angular-signature-pad copied to clipboard

Problem in Angular 6

Open webnegar opened this issue 6 years ago • 14 comments

Hi, According to instructions, I did these steps

ng new app.. (angular6)

npm install angular-signature-pad --save

import { AngularSignaturePadModule } from 'angular-signature-pad';

@NgModule({
  imports: [
    ...
    AngularSignaturePadModule.forRoot()
  ]
  ...
})
export class AppModule { }

ng serve but i get this error:

ERROR in src/app/app.module.ts(5,43): error TS2307: Cannot find module 'angular-signature-pad'.

webnegar avatar Jul 03 '18 09:07 webnegar

Any suggestion?

webnegar avatar Jul 20 '18 07:07 webnegar

I have the same problem.

mrsavvy avatar Jul 20 '18 09:07 mrsavvy

i also facing same issue.please help me on this

Prasanth-Android avatar Jul 21 '18 13:07 Prasanth-Android

is anyone got the fix for above

ROHAN-TANDEL avatar Jul 26 '18 11:07 ROHAN-TANDEL

I fixed the problem using the "angular2-signaturepad" https://www.npmjs.com/package/angular2-signaturepad, it works for me.

mrsavvy avatar Jul 26 '18 12:07 mrsavvy

But When I try It I got no signature pad on the HTML page. BTW I am using angular 6 I was thinking some dependencies. Even My fellow colleague has used this https://www.npmjs.com/package/angular2-signaturepad It has worked well.

@mrsavvy I will give one more try for you suggested option.

ROHAN-TANDEL avatar Jul 26 '18 12:07 ROHAN-TANDEL

I'm having the same issue? Has anyone found a solution?

webappaloosa avatar Sep 24 '18 15:09 webappaloosa

The reference forRoot method is picked up by my IDE via the public_api.d.ts file, but i am still getting the following error:

ERROR in ./src/app/app.module.ts
Module not found: Error: Can't resolve 'angular-signature-pad/public_api'

maybe needs an index.d.ts ???

webappaloosa avatar Sep 24 '18 15:09 webappaloosa

finally i fixed this issue by adding source code of module to my project instantly.

add this folder to your shared modules: angular-signature-pad/src/libs/angular-signature-pad/src/

webnegar avatar Sep 24 '18 18:09 webnegar

finally i fixed this issue by adding source code of module to my project instantly.

add this folder to your shared modules: angular-signature-pad/src/libs/angular-signature-pad/src/

I don't think this is going to work this means you'll have to do the same for every environment your solution is running.

Any other ideas?

sandisototo avatar Oct 19 '18 11:10 sandisototo

A little late but resolved my issues by renaming angular-signature-pad-0.0.13.tgz to angular-signature-pad-0.0.14.tgz

The package.json in node_modules points to 0.0.14 but the file doesnt exist.

Ashveer7 avatar May 13 '19 09:05 Ashveer7

The issue is fixed by import module from 'angular-signature-pad/public_api'; But now there is compilation issue:

ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'AngularSignaturePadModule' was called.

This Line is causing the error. I don't know what to pass in forRoot(). Any Help: AngularSignaturePadModule.forRoot(),

ImRehanK avatar Jun 28 '19 12:06 ImRehanK

I got the same issue, i´ve tried all the posted solutions, but none worked for me.

jfrodriguezviamar avatar Jan 13 '20 13:01 jfrodriguezviamar

I got the same issue, i´ve tried all the posted solutions, but none worked for me.

Same, i tried every solution posted here and nothing works.

takashi1kun avatar Sep 16 '20 09:09 takashi1kun