Closed strike2867 closed 1 year ago
I've added this commit to my fork.
Hi @pm20390,
Thanks for the fix on the import. The time that the modification is pushed, I made the modification on my side but it seems to have another error?
Error: export 'GoogleTagManagerConfiguration' (imported as 'GoogleTagManagerConfiguration') was not found in 'angular-google-tag-manager' (possibl e exports: GoogleTagManagerModule, GoogleTagManagerService)
public-api.ts
export * from './lib/angular-google-tag-manager.service'; export * from './lib/angular-google-tag-manager.module'; export * from './lib/google-tag-manager-config'; export * from './lib/angular-google-tag-manager-config.service';
Best regard
Hi @lechatgraphique
I will double check later but that should be resolved by the last line in your public-api. I am using this currently without issue.
Are you sure you’ve imported GoogleTagManagerConfiguration correctly where you need to use it?
Best
Thank you for your reply. Logically it should work. I show you
public-api.d.ts
app.module.ts
If you need this change now, I would use my fork “ng-google-tag-manager” (available via npm) and then just switch back when it gets merged. Editing the .d.ts files for the built output won’t work.
Ok thanks, I will do that :)
Great thanks for the helping hand. It works damn ;)
Error: Can't resolve 'angular-google-tag-manager-config.service' in '...' Cannot find module 'angular-google-tag-manager-config.service' or its corresponding type declarations.
It looks as though GoogleTagManagerConfiguration is not exported.