Closed alwinaugustin closed 4 months ago
You are using "webpack": "^3.6.0"
which is really really old and therefore not under my support
Consider switching to Vite or alternatives, or try to find another way. Maybe even an older version can help, but as you can think these might have less features or other legacy dependencies that wont get updated anymore. But as you are already using webpack v3 I assume security fixes and legacy dependencies are not a problem for you anyways.
hi there. @alwinaugustin Did you resolve this issue? I have the same, but with
"@gtm-support/vue2-gtm": "^2.0.0",
"core-js": "^3.6.5",
"vue": "^2.7.1",
"vue-class-component": "^7.2.3",
"vue-i18n": "^8.24.1",
"vue-property-decorator": "^9.1.2",
"vuelidate": "^0.7.6",
"vuex": "^3.4.0"
"@types/vuelidate": "^0.7.13",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/eslint-config-typescript": "^5.0.2",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.52.3",
"sass-loader": "^8.0.2",
"typescript": "~3.9.3",
"vue-template-compiler": "^2.6.11"
Can be fixed using the solution of this issue: https://stackoverflow.com/questions/74784673/vue-gtm-error-you-may-need-an-appropriate-loader-to-handle-this-file-type
vue.config.js
{
transpileDependencies: ['@gtm-support/core', '@gtm-support/vue2-gtm']
}
nuxt.config.js
{
build: {
transpile: ['@gtm-support/core', '@gtm-support/vue2-gtm']
}
}
@zzhenryquezz thanks, it works.
It can be simplified by including whole @gtm-support
vue.config.js
{
transpileDependencies: ['@gtm-support'],
}
Same error
I am using
@gtm-support/vue2-gtm": "^1.0.0"
in one of my Vue-2 applications and the Vue versions are as follows:and for the Webpack and Vue-Loader :
Now, when I start my application, I get the following error:
In the
main.js
file. I have the following code:And I have a
util.js
file, and there I have the function for tracking events:I call this function from my components. I am using the 1.0.0 version here as other versions also show me the same error, and thought an earlier version would sometimes fix the issue.