Open jakedowns opened 2 years ago
seems like adding
"exclude": "VueTemplateBabelCompiler",
to my .babelrc file may have fixed the issue
i'm not 100%, since now the page is having other issues. but the compiler is no longer throwing an error
will see if the other page issues are related...
Thanks for your feedback.
But I can't reproduce your error, I made a reproduction DEMO:
Could you fork it, and try to reproduce your error?
I wish we could fix this error ASAP.
Current behavior
when compiling for dev, the compiler seems to work great
when compiling for prod, i get the following error (38 times, for different vue components)
SearchResults.vue: (i thought it was the break tags causing an issue so i commented them out, but the issue remains)
Expected behavior
should compile without errors
Extra
node v14.16.1
webpack: 5.70.0 webpack-cli: 4.9.2 webpack-dev-server 4.7.4
"babel-preset-minify": "^0.5.1", "@babel/core": "^7.17.5", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", "@babel/plugin-transform-runtime": "^7.15.8", "@babel/polyfill": "^7.12.1", "@babel/register": "^7.12.10", "@babel/runtime": "^7.16.3", "@types/babel__core": "^7.1.18",
"@vue/cli-plugin-babel": "^4.5.15", "@inertiajs/inertia-vue": "^0.7.2", "@vue/cli-service": "^5.0.1", "vue": "^2.6.14", "vue-loader": "^15.9.8", "vue-server-renderer": "^2.6.12", "vue-template-babel-compiler": "^1.1.3", "vue-template-compiler": "^2.6.12", "vuex": "^3.6.0",
"laravel-mix-merge-manifest": "^2.0.0", "laravel-mix": "^6.0.43",
Laravel Mix / Webpack Config: