You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use vite when build a miniprogram node_modules/@vitejs/plugin-vue/dist/index.js have error
descriptor.styles.length is one , but query.index is one too , so
constblock=descriptor.styles[index];// block is undefinedconstresult=awaitcompiler.compileStyleAsync(__spreadProps(__spreadValues({},options.style),{filename: descriptor.filename,id: `data-v-${descriptor.id}`,isProd: options.isProduction,source: code,scoped: block.scoped// block.scoped have error}));
[vite:vue] Cannot read properties of undefined (reading 'scoped')
file: /Users/wangkai/Downloads/Code/uni-vite/src/styles/b.less?vue&type=style&index=1&src&lang.less
error during build:
TypeError: Cannot read properties of undefined (reading 'scoped')
at transformStyle (/Users/wangkai/Downloads/Code/uni-vite/node_modules/@vitejs/plugin-vue/dist/index.js:4691:19)
at Object.transform (/Users/wangkai/Downloads/Code/uni-vite/node_modules/@vitejs/plugin-vue/dist/index.js:4829:18)
at /Users/wangkai/Downloads/Code/uni-vite/node_modules/rollup/dist/shared/rollup.js:22706:25
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
I use vite when build a miniprogram
node_modules/@vitejs/plugin-vue/dist/index.js
have errordescriptor.styles.length is one , but query.index is one too , so
Reproduction
https://github.com/sufuWang/uniapp_vite/tree/feature/vite
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: