Code Monkey home page Code Monkey logo

Comments (6)

mzuccaroli avatar mzuccaroli commented on July 20, 2024 2

@Shyam7675 the best version for angular 11 is 1.3.x so
npm install [email protected]
or in your package.json
"dependencies": { ... "angular-google-tag-manager": "=1.3.2", ... }

the 1.4.x is released only for angular 12/13 support it does not add features so you can safely use 1.3.x

from angular-google-tag-manager.

mzuccaroli avatar mzuccaroli commented on July 20, 2024 1

you are using a old version of angular (9 according to your package) this version is released to support angular 13 i think the best solution for compatibility is install old version of the library (1.3.x should work)

from angular-google-tag-manager.

mzuccaroli avatar mzuccaroli commented on July 20, 2024 1

during the weekend I released the new angular 13 packages, that has different requirements (such as node 14) i thnk this is the breaking change (actually a 1.5.x version could have been more appropriate because of breaking changes)
another user with an old version of angular had a similar issue #105 and i thin you ca safely use his solution untill you update your angular version:
"dependencies": { ... "angular-google-tag-manager": "=1.4.2", ... }

from angular-google-tag-manager.

ShreyanshGitShukla avatar ShreyanshGitShukla commented on July 20, 2024

@mzuccaroli I will try this out for sure. The thing that I am confused about is, how was it working for V1.4.2 since last 30-40 days. This issue popped up since today morning.

PS: I haven't verified that on the last weekend though.

from angular-google-tag-manager.

Shyam7675 avatar Shyam7675 commented on July 20, 2024

Facing same issue can you help me to solve this issue as I am using angular 11

from angular-google-tag-manager.

emartinrda avatar emartinrda commented on July 20, 2024

OTHER SOLUTION: Had the same issue, as you can see my the screenshot there are two methods for implementing in the modules.ts

If you use the first one (adding in providers) and also add line "import { GoogleTagManagerModule } from 'angular-google-tag-manager';" you will have issues in 1.4.2 or above.

If you only use "providers" you will have no issues..

photo_2022-05-23_14-46-30

from angular-google-tag-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.