-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue-cli has error #287
Comments
We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks. |
https://gitee.com/xhlhehe/vue-cli-test |
Isn't |
unplugin-color-change.zip |
Please try to add transformInclude(id) {
return !id.endsWith('.html')
}, |
Thank you very much,is my code bug?or unplugin bug?please tell me ,I want to learn😁 |
It's hard to say. I think
|
Ok, I didn't take this into account. What I wanted was to replace the colors in all the files, and all of them didn't have blocking suffixes. |
Actually, if you think about it carefully,. html should be blocked, because this is the only index.html for the vue project, and the rest are not (unless there are special circumstances). |
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 these loaders:
You may need an additional loader to handle the result of these loaders.
|
| :
SyntaxError: Unexpected token (1:0)
compiler.js:79
[hky-profile-plus]/[html-webpack-plugin]/lib/compiler.js:79:16
Compiler.js:343
[hky-profile-plus]/[webpack]/lib/Compiler.js:343:11
Compiler.js:681
[hky-profile-plus]/[webpack]/lib/Compiler.js:681:15
Hook.js:154 AsyncSeriesHook.lazyCompileHook
[hky-profile-plus]/[tapable]/lib/Hook.js:154:20
Compiler.js:678
[hky-profile-plus]/[webpack]/lib/Compiler.js:678:31
Hook.js:154 AsyncSeriesHook.lazyCompileHook
[hky-profile-plus]/[tapable]/lib/Hook.js:154:20
Compilation.js:1423
[hky-profile-plus]/[webpack]/lib/Compilation.js:1423:35
Hook.js:154 AsyncSeriesHook.lazyCompileHook
[hky-profile-plus]/[tapable]/lib/Hook.js:154:20
Compilation.js:1414
[hky-profile-plus]/[webpack]/lib/Compilation.js:1414:32
Hook.js:154 AsyncSeriesHook.lazyCompileHook
[hky-profile-plus]/[tapable]/lib/Hook.js:154:20
Compilation.js:1409
[hky-profile-plus]/[webpack]/lib/Compilation.js:1409:36
Additional context
I 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
Logs
No response
The text was updated successfully, but these errors were encountered: