Skip to content

Intermittent error during CICD - Cannot read properties of undefined (reading 'scoped') #744

@bretto36

Description

@bretto36

Describe the bug

During our CI/CD build on our github workflows we sometimes encounter this issue, usually rerunning the job solves it fine. It seems like query is undefined so when it accesses query.scoped it fails.. I cant replicate it whenever i want, it's just an intermittent thing that affects our build maybe 5% of the time.

error during build:
[vite:vue] Cannot read properties of undefined (reading 'scoped')
file: /home/runner/work/collect/collect/node_modules/@cyhnkckali/vue3-color-picker/dist/style.css?vue&type=style&index=1&src=true&lang.css
    at transformStyle (file:///home/runner/work/collect/collect/node_modules/@vitejs/plugin-vue/dist/index.mjs:2838:19)
    at Object.transform (file:///home/runner/work/collect/collect/node_modules/@vitejs/plugin-vue/dist/index.mjs:3076:18)
    at Object.handler (file:///home/runner/work/collect/collect/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46537:15)
    at file:///home/runner/work/collect/collect/node_modules/rollup/dist/es/shared/node-entry.js:22571:40

Reproduction

https://github.com/cyhnkckali/vue3-color-picker

Steps to reproduce

npm install

npm run build

System Info

vite 6.4.1 - i can't run that command as it happens on github workflows

Used Package Manager

npm

Logs

error during build:
[vite:vue] Cannot read properties of undefined (reading 'scoped')
file: /home/runner/work/collect/collect/node_modules/@cyhnkckali/vue3-color-picker/dist/style.css?vue&type=style&index=1&src=true&lang.css
at transformStyle (file:///home/runner/work/collect/collect/node_modules/@vitejs/plugin-vue/dist/index.mjs:2838:19)
at Object.transform (file:///home/runner/work/collect/collect/node_modules/@vitejs/plugin-vue/dist/index.mjs:3076:18)
at Object.handler (file:///home/runner/work/collect/collect/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46537:15)
at file:///home/runner/work/collect/collect/node_modules/rollup/dist/es/shared/node-entry.js:22571:40

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions