question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHub action fails with `Error: Cannot find module 'node:path'`

See original GitHub issue

We 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:

image

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ghengeveldcommented, Oct 13, 2021

Great. Closing this issue. Please reopen if the problem persists.

Sorry for the trouble!

2reactions
ndelangencommented, Oct 13, 2021

We’re fixing this ASAP

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found