Closed dhakshinait closed 2 years ago
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
Thanks. I have used vue-gtm 3.0.0 and it worked.
i have the same error and I am using Webpack 3.6.0
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
@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.
Hi,
Thanks for great package. I have tried to use it in one of Vue 2 application but I got the below 3 compile errors for 'npm run prod'
package json
Any idea what might be issue here?. Thanks in advance.