bundle-tools icon indicating copy to clipboard operation
bundle-tools copied to clipboard

Final loader didn't return buffer or string

Open artnova-david opened this issue 2 years ago • 2 comments

Reporting a bug?

After upgrading yaml-loader from v0.6.0 to v0.8.0 I got this build error on .yml files: "Final loader (./node_modules/@intlify/vue-i18n-loader/lib/index.js) didn't return a Buffer or String"

Expected behavior

Build with no errors :)

Reproduction

System Info

package.json:

"dependencies": {
    "@quasar/quasar-ui-qcalendar": "^3.4.1",
    "axios": "^0.25.0",
    "core-js": "^3.22.8",
    "lodash": "^4.17.21",
    "mitt": "^3.0.0",
    "pinia": "^2.0.14",
    "quasar": "^2.7.1",
    "quasar-extras": "^2.0.9",
    "vue": "^3.2.36",
    "vue-i18n": "^9.1.10",
    "vue-router": "^4.0.15"
  },
  "devDependencies": {
    "@babel/eslint-parser": "^7.18.2",
    "@babel/plugin-proposal-class-properties": "^7.17.12",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
    "@babel/plugin-proposal-optional-chaining": "^7.17.12",
    "@babel/plugin-proposal-private-methods": "^7.17.12",
    "@intlify/vue-i18n-loader": "^4.2.0",
    "@vue/cli-plugin-babel": "^5.0.4",
    "@vue/cli-plugin-eslint": "^5.0.4",
    "@vue/cli-service": "^5.0.4",
    "@vue/compiler-sfc": "^3.2.36",
    "circular-dependency-plugin": "^5.2.2",
    "dotenv": "^14.3.2",
    "dotenv-expand": "^6.0.1",
    "eslint": "^8.16.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-vue": "^9.1.0",
    "glob-all": "^3.3.0",
    "purgecss-webpack-plugin": "^4.1.3",
    "raw-loader": "^4.0.2",
    "sass": "^1.52.1",
    "sass-loader": "^10.2.1",
    "webpack-bundle-analyzer": "^4.5.0",
    "yaml-loader": "^0.8.0"
  }

Screenshot

i18n webpack config 2022-06-02_11-42-28 g

Additional context

No response

Validations

artnova-david avatar Jun 02 '22 09:06 artnova-david

This is issue of bunle-tools, so move to it

kazupon avatar Jun 02 '22 14:06 kazupon

Thank you for your reporting!

hmm, 🤔 we need yaml-style i18n locale messages that are not processed by vue-i18n need to be ignored and pipelined with the rest of the loader pipeline.

kazupon avatar Jun 02 '22 14:06 kazupon