Skip to content

Conversation

@liximomo
Copy link

@liximomo liximomo commented Dec 12, 2022

The error is caused by a specific alias config of webpack, considering the following example:

// webpack.config.js
module.exports = {
  resolve: {
    alias:  {
       "@/foo": ["src/foo/index", "src/foo"] 
     }
  }
}

With the above config, we will get a DirectoryWatcher watching src/foo/index. If you happen to have a src/foo file on your filesystem, you will see the error:

Watchpack Error (initial scan): Error: ENOTDIR: not a directory, scandir '/Users/xx/demo/src/foo'

We could safely ignore the error of ENOTDIR in whatever cases.

Related Issues:
nuxt/bridge#226

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 12, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: liximomo / name: X.L (fe84a8b)

@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.11%. Comparing base (dc690bb) to head (9ccfcf3).
⚠️ Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
lib/DirectoryWatcher.js 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (dc690bb) and HEAD (9ccfcf3). Click for more details.

HEAD has 5 uploads less than BASE
Flag BASE (dc690bb) HEAD (9ccfcf3)
integration 25 20
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #226       +/-   ##
===========================================
- Coverage   92.12%   78.11%   -14.01%     
===========================================
  Files           6        6               
  Lines        1041     1042        +1     
  Branches      249      250        +1     
===========================================
- Hits          959      814      -145     
- Misses         82      228      +146     
Flag Coverage Δ
integration 78.11% <0.00%> (-14.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant