bundle-tools
bundle-tools copied to clipboard
Final loader didn't return buffer or string
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
g
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [ ] Check that this is a concrete bug. For Q&A open a GitHub Discussion
- [ ] The provided reproduction is a minimal reproducible example of the bug.
This is issue of bunle-tools, so move to it
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.