Title: vue-cli has error · Issue #287 · unjs/unplugin · GitHub
Open Graph Title: vue-cli has error · Issue #287 · unjs/unplugin
X Title: vue-cli has error · Issue #287 · unjs/unplugin
Description: Environment node 14.21.3 vue-cli:4.5.13 unplugin:1.3.1 Reproduction this is my plugin; @zkwq/unplugin-color-change Describe the bug Error: Child compilation failed: Module parse failed: Unexpected token (1:0) File was processed with thes...
Open Graph Description: Environment node 14.21.3 vue-cli:4.5.13 unplugin:1.3.1 Reproduction this is my plugin; @zkwq/unplugin-color-change Describe the bug Error: Child compilation failed: Module parse failed: Unexpected ...
X Description: Environment node 14.21.3 vue-cli:4.5.13 unplugin:1.3.1 Reproduction this is my plugin; @zkwq/unplugin-color-change Describe the bug Error: Child compilation failed: Module parse failed: Unexpected ...
Opengraph URL: https://github.com/unjs/unplugin/issues/287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"vue-cli has error","articleBody":"### Environment\n\nnode 14.21.3\r\nvue-cli:4.5.13\r\nunplugin:1.3.1\n\n### Reproduction\n\nthis is my plugin;\r\n[@zkwq/unplugin-color-change](https://www.npmjs.com/package/@zkwq/unplugin-color-change)\n\n### Describe the bug\n\n Error: Child compilation failed:\r\n Module parse failed: Unexpected token (1:0)\r\n File was processed with these loaders:\r\n * ./node_modules/unplugin/dist/webpack/loaders/transform.js\r\n * ./node_modules/html-webpack-plugin/lib/loader.js\r\n You may need an additional loader to handle the result of these loaders.\r\n > \u003c!DOCTYPE html>\r\n | \u003chtml lang=\"\">\r\n | \u003chead>:\r\n SyntaxError: Unexpected token (1:0)\r\n \r\n - compiler.js:79 \r\n [hky-profile-plus]/[html-webpack-plugin]/lib/compiler.js:79:16\r\n \r\n - Compiler.js:343 \r\n [hky-profile-plus]/[webpack]/lib/Compiler.js:343:11\r\n \r\n - Compiler.js:681 \r\n [hky-profile-plus]/[webpack]/lib/Compiler.js:681:15\r\n \r\n \r\n - Hook.js:154 AsyncSeriesHook.lazyCompileHook\r\n [hky-profile-plus]/[tapable]/lib/Hook.js:154:20\r\n \r\n - Compiler.js:678\r\n [hky-profile-plus]/[webpack]/lib/Compiler.js:678:31\r\n\r\n\r\n - Hook.js:154 AsyncSeriesHook.lazyCompileHook\r\n [hky-profile-plus]/[tapable]/lib/Hook.js:154:20\r\n\r\n - Compilation.js:1423\r\n [hky-profile-plus]/[webpack]/lib/Compilation.js:1423:35\r\n\r\n\r\n - Hook.js:154 AsyncSeriesHook.lazyCompileHook\r\n [hky-profile-plus]/[tapable]/lib/Hook.js:154:20\r\n\r\n - Compilation.js:1414\r\n [hky-profile-plus]/[webpack]/lib/Compilation.js:1414:32\r\n\r\n\r\n - Hook.js:154 AsyncSeriesHook.lazyCompileHook\r\n [hky-profile-plus]/[tapable]/lib/Hook.js:154:20\r\n\r\n - Compilation.js:1409\r\n [hky-profile-plus]/[webpack]/lib/Compilation.js:1409:36\n\n### Additional context\n\nI put forward the issue yesterday. After waiting for the release of the new version, I immediately tested it. The result reported another error. I tested the remote package of the same version on vite. All the problems I felt were not the node version. If you need more details, please contact me\n\n### Logs\n\n_No response_","author":{"url":"https://github.com/wojiaoxiaomayun","@type":"Person","name":"wojiaoxiaomayun"},"datePublished":"2023-03-15T01:45:06Z","url":"https://github.com/unjs/unplugin/issues/287"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a697df61-0983-8bf2-c195-b5f109921bd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82E2:2FFC0A:4238B2:5CD62E:6B007036 |
| html-safe-nonce | 68adcdd86fd47ea59a294f4584ceef83ee9043237ddf786935fb11691f778619 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkUyOjJGRkMwQTo0MjM4QjI6NUNENjJFOjZCMDA3MDM2IiwidmlzaXRvcl9pZCI6Ijg2MTk1MTM1NzgyOTYyMDk0NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e39188df6c127e7b9f714d4daa542eefce06aa24ab9c27fc81aedb2ca288ef6 |
| hovercard-subject-tag | issue:1624575208 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unjs/unplugin/287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e430dba3910fdb3cfbce144152b632dd0c4ee11ac9d341c444217f3079a51b5/unjs/unplugin/issues/287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e430dba3910fdb3cfbce144152b632dd0c4ee11ac9d341c444217f3079a51b5/unjs/unplugin/issues/287 |
| og:image:alt | Environment node 14.21.3 vue-cli:4.5.13 unplugin:1.3.1 Reproduction this is my plugin; @zkwq/unplugin-color-change Describe the bug Error: Child compilation failed: Module parse failed: Unexpected ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wojiaoxiaomayun |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/unjs/unplugin git https://github.com/unjs/unplugin.git |
| octolytics-dimension-user_id | 80154025 |
| octolytics-dimension-user_login | unjs |
| octolytics-dimension-repository_id | 385261169 |
| octolytics-dimension-repository_nwo | unjs/unplugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 385261169 |
| octolytics-dimension-repository_network_root_nwo | unjs/unplugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width