html plugins title undefined
See original GitHub issueconfig.plugin("html").tap(args => {
console.log(args);
args[0].title = "";
return args;
})
$ node ./bin/vite
running: vite --config C:\code\iep-ui\node_modules\vue-cli-plugin-vite\config\index.ts
[]
error when starting dev server:
TypeError: Cannot set property 'title' of undefined
at C:\code\iep-ui\vue.config.js:40:21
at Object.tap (C:\code\iep-ui\node_modules\vite-plugin-vue-cli\dist\index.js:336:24)
at Object.chainWebpack (C:\code\iep-ui\vue.config.js:38:27)
at Object.config (C:\code\iep-ui\node_modules\vite-plugin-vue-cli\dist\index.js:10189:19)
at C:\code\iep-ui\node_modules\vite\dist\node\chunks\dep-66eb515d.js:45908:27
at Array.forEach (<anonymous>)
at resolveConfig (C:\code\iep-ui\node_modules\vite\dist\node\chunks\dep-66eb515d.js:45906:17)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async createServer (C:\code\iep-ui\node_modules\vite\dist\node\chunks\dep-66eb515d.js:69132:20)
at async CAC.<anonymous> (C:\code\iep-ui\node_modules\vite\dist\node\cli.js:14037:24)
版本: 1.55.2 (user setup) 提交: 3c4e3df9e89829dce27b7b5c24508306b151f30d 日期: 2021-04-13T09:35:57.887Z Electron: 11.3.0 Chrome: 87.0.4280.141 Node.js: 12.18.3 V8: 8.7.220.31-electron.0 OS: Windows_NT x64 10.0.19042
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Undefined property: Vc_Updater::$title in - WordPress.org
The error occurs happens when we call the WordPress plugins_api() function to check whether each plugin is in the wordpress.org repository, and if...
Read more >Type Error i is undefined - jquery plugins - Stack Overflow
The error lies in the draggable collision plugin file. Each time the method .data("draggable") is called, an undefined value is returned.
Read more >Cannot read property 'options' of undefined with Jade template
First of all thanks for this plugin. I need help to understand what I am doing wrong with inline example. Webpack configuration is...
Read more >Uncaught TypeError: jsPsych.plugins is undefined
I am trying to move a script I wrote in jsPsych to psiturk. The script worked when I uploaded it to a private...
Read more >Prism
Download. Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It's used in millions of websites, including some ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

because this plugin try my best to help vue-cli using vite. But it is not perfact. You must use right way to help this plugin work and keep vue-cli work as well.
you can check examples for title modify. https://github.com/IndexXuan/vue-enterprise-boilerplate/blob/feature/vite/vue.config.js#L9
https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-plugin
I want to pass variables to the index.html file in the official documentation, which works in vue-cli, but using this vite plugin is problematic