Closed pochern closed 1 year ago
Update: This was caused due to the vue config being configureWebpack
, which with the new vue/compat settings (using vue-loader), added another vue-loader to webpack's default configuration that includes vue-loader.
Solution: Update vue.config.js file to use chainWebpack configuration.
After installing the vue/compat package and vue/compiler-sfc, (all necessary changes to just start fixing the compilation errors on mode 2), I am getting one compilation error from vue-loader.
Module Error (from ./node_modules/vue-loader/dist/index.js): At least one <template> or <script> is required in a single file component.
Even though all my components are structured the same way and correctly, and all worked in vue 2 before trying the migration method to migrate to Vue 3.
What would be the cause of this issue and how can I fix this error?
For reference, this is the current state of my vue.config.js file:
Thank you.