GitHub action fails with `Error: Cannot find module 'node:path'`
See original GitHub issueWe use the GitHub action for Chromatic in our CI pipeline, and it stopped working about 30 minutes ago. It now produces the following error on every run:
Here is our workflow:
name: 'PR Checks'
on: push
jobs:
test:
name: Chromatic QA
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.17
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Required to retrieve git history
- name: Use Node.js v14 with Yarn cache
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-
- name: Yarn install
run: yarn --frozen-lockfile --prefer-offline
if: |
steps.cache-node-modules.outputs.cache-hit != 'true'
- uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
exitZeroOnChanges: false
autoAcceptChanges: master
allowConsoleErrors: true
exitOnceUploaded: true
Any ideas? We haven’t changed anything on our end ☹️
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Cannot find module 'node:path' in vite.config.ts · Issue #9113 ...
The error is Error: Cannot find module 'node:path' which seems to mean that the build isn't running in a node environment. However this...
Read more >Cannot find module 'node:path' · Issue #101 - GitHub
[webpack-cli] Failed to load '/Users/guillaume/Sites/sainthillier.fr/webpack.config.js' [webpack-cli] Error: Cannot find module 'node:path' ...
Read more >[Bug] Cannot find module 'node:path' - storybookjs/builder-vite
I installed storybook on a package project I am working on. Just ran npx storybook init. Since the first run of npm run...
Read more >Cannot find module 'node:path' #15 - GitHub
Hi I'm using this plugin in a newly created project wit svelte and typescript however I'm getting this error: failed to load config...
Read more >Misleading "Cannot find module" error message #68 - GitHub
When using the approach described in the "Run a separate file", I encountered a very misleading error message: Error: Cannot find module ......
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
Great. Closing this issue. Please reopen if the problem persists.
Sorry for the trouble!
We’re fixing this ASAP