Git Product home page Git Product logo

Comments (5)

dhakshinait avatar dhakshinait commented on June 6, 2024 2

Thanks. I have used vue-gtm 3.0.0 and it worked.

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on June 6, 2024

I see you are using Webpack v2
I'm afraid and unable to support such old bundling tools
Please search for an older version of vue-gtm and hope that one of them works for your case
=> https://www.npmjs.com/package/vue-gtm

from vue-gtm.

alwinaugustin avatar alwinaugustin commented on June 6, 2024

i have the same error and I am using Webpack 3.6.0

from vue-gtm.

Shinigami92 avatar Shinigami92 commented on June 6, 2024

i have the same error and I am using Webpack 3.6.0

that's totally okay, just try an old version of vue-gtm
legacy software is not supported by this project

from vue-gtm.

alwinaugustin avatar alwinaugustin commented on June 6, 2024

@Shinigami92 I tried to use "@gtm-support/vue2-gtm": "^1.3.0", but that is giving error as follows:

ERROR in ./node_modules/@gtm-support/core/lib/utils.js
Module parse failed: Unexpected token (37:8)
You may need an appropriate loader to handle this file type.
|     const queryString = new URLSearchParams({
|         id,
|         ...((_c = config.queryParams) !== null && _c !== void 0 ? _c : {}),
|     });
|     const source = (_d = config.source) !== null && _d !== void 0 ? _d : 'https://www.googletagmanager.com/gtm.js';
 @ ./node_modules/@gtm-support/core/lib/index.js 9:14-32
 @ ./node_modules/@gtm-support/vue2-gtm/dist/index.js
 @ ./src/main.js

ERROR in ./node_modules/@gtm-support/core/lib/gtm-support.js
Module parse failed: Unexpected token (45:12)
You may need an appropriate loader to handle this file type.
|             defer: false,
|             compatibility: false,
|             ...options,
|         };
|         // @ts-expect-error: Just remove the id from options
 @ ./node_modules/@gtm-support/core/lib/index.js 7:20-44
 @ ./node_modules/@gtm-support/vue2-gtm/dist/index.js
 @ ./src/main.js

ERROR in static/js/vendor.js from UglifyJs
Unexpected token: name (err) [./node_modules/asn1.js/lib/asn1/base/reporter.js:71,0][static/js/vendor.js:5559,6]

  Build failed with errors.

from vue-gtm.

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.