6.3.3 Did not find any CSF globs in preview-stats.json (It was working with 6.2.3)
See original GitHub issueWe’re using github actions to add Chromatic to our pipeline. It suddenly stopped working today and after some investigation, the only difference is that the CLI version used by the Github Action bumped up from 6.2.3 to 6.3.3.
→ Validating Storybook files
Retrieving story files affected by recent changes
→ Traversing dependencies for 108 files that changed since the last build
✖ Did not find any CSF globs in /tmp/chromatic--1765-AcyfWpX0wn54/preview-stats.json
Check your stories configuration in frontend/.storybook/main.js
Failed to retrieve dependent story files
ℹ Read more at https://storybook.js.org/docs/null/configure/overview
→ Could not retrieve dependent story files.
Did not find any CSF globs in preview-stats.json
✖ Failed to publish your built Storybook
Could not retrieve dependent story files.
Did not find any CSF globs in preview-stats.json
→ View the full stacktrace below
If you need help, please chat with us at https://www.chromatic.com/docs/cli for the fastest response.
You can also email the team at support@chromatic.com if chat is not an option.
Please provide us with the above CLI output and the following info:
{
"timestamp": "2021-12-22T21:30:26.090Z",
"sessionId": "3ba52350-0fdc-486b-aec5-418ba46dbb22",
"gitVersion": "2.34.1",
"nodePlatform": "linux",
"nodeVersion": "12.13.1",
"packageName": "chromatic",
"packageVersion": "6.3.3",
"storybook": {
Error: non-zero exit code
"viewLayer": null,
"version": null,
"addons": []
},
"flags": {
"projectToken": "***",
"workingDir": "frontend",
"skip": false,
"onlyChanged": true,
"fromCI": true,
"interactive": false,
"exitZeroOnChanges": true,
"exitOnceUploaded": false,
"allowConsoleErrors": false
},
"buildScript": "build-storybook",
"spawnParams": {
"client": "npm",
"clientVersion": "8.1.2",
"nodeVersion": "v16.13.1",
"platform": "linux",
"command": "npm",
"clientArgs": [
"run",
"--silent"
],
"scriptArgs": [
"build-storybook",
"--",
"--output-dir",
"/tmp/chromatic--1765-AcyfWpX0wn54",
"--webpack-stats-json",
"/tmp/chromatic--1765-AcyfWpX0wn54"
]
},
"errorType": "Error",
"errorMessage": "✖ Failed to publish your built Storybook",
"build": {
"number": 271,
"webUrl": "https://www.chromatic.com/build?appId=6196dd942f4468003ac25bff&number=271"
}
}
Error: ✖ Failed to publish your built Storybook
Could not retrieve dependent story files.
Did not find any CSF globs in preview-stats.json
at /home/runner/work/_actions/chromaui/action/v1/action/main.js:188:51
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /home/runner/work/_actions/chromaui/action/v1/action/main.js:184:133
at async e.exports.task (/home/runner/work/_actions/chromaui/action/v1/action/main.js:15:1296)
# Workflow name
name: "Chromatic"
# Event for the workflow
on:
# Chromatic needs the commit sha of master to use as image base for comparisons
push:
branches:
- master
# Only run if the PR contains changes to frontend/**
pull_request:
types: [opened, synchronize]
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
# Job steps
steps:
- name: Check if service has changed
uses: actions/github-script@0.9.0
id: service-changed
with:
result-encoding: string
script: |
if (context.eventName == 'push') return false
const result = await github.pulls.listFiles({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.number,
per_page: 100
})
const serviceChanged = result.data.filter(f => f.filename.startsWith("frontend/")).length > 0
console.log(serviceChanged)
return serviceChanged
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
working-directory: frontend
# Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
workingDir: frontend
token: ${{ secrets.GITHUB_TOKEN }}
# Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
skip: ${{ steps.service-changed.outputs.result == 'false' }}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:19 (8 by maintainers)
Top Results From Across the Web
TurboSnap • Chromatic docs
TurboSnap is an advanced Chromatic feature that speeds up builds for faster UI testing and review using Git and Webpack's dependency graph.
Read more >Chromatic NPM - npm.io
Chromatic production can not remove any features this package depends on until after the usage has been removed from this package in addition...
Read more >Compare Versions | @elliemae/pui-cli - Open Source Insights
We found errors while resolving dependencies that may result in an incomplete or inaccurate dependency graph. Show details. could not find a version...
Read more >chromatic-cli - bytemeta
6.3.3 Did not find any CSF globs in preview-stats.json (It was working with 6.2.3). m0onspell. m0onspell CLOSED · Updated 9 months ago ...
Read more >storybook-chromatic | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
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 FreeTop 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
Top GitHub Comments
Hey @VickyKoblinski, just to jump in for @ghengeveld here as he is away this week. We might need to take a look at your webpack stats file here to debug this. I’ll write the steps here in case it helps others.
A.stories.js
, that should be picked up by yourstories
glob"./src/components sync ^\\.(?:(?:^|\\/|(?:(?:(?!(?:^|\\/)\\.).)*?)\\/)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"
[1] an example:
[2] same example:
I’m seeing this same issue, and it seems directly related to having storyStoreV7: true in our main.js, works fine as soon as I removed it.
Info on fail:
Here’s my stats files (following @tmeasday 's instructions above) for both scenarios before and after.
With storyStoreV7: true (“Did not find any CSF globs in preview-stats.json”)
After removing storyStoreV7: true (works as desired, snapshotted 7 relevant stories when Radio component was modified)