nuxt-community / date-fns-module

Modern JavaScript date utility library - date-fns for Nuxt.js
MIT License
78 stars 8 forks source link

"Not a directory" error with Nuxt Bridge #65

Open toniengelhardt opened 2 years ago

toniengelhardt commented 2 years ago

I get the following error when using the module with Nuxt Bridge:

ENOTDIR: not a directory, scandir '.../node_modules/date-fns/esm/locale/index.js'

 @ ./.nuxt/date-fns.js 44:19-73
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/@nuxt/bridge/dist/runtime/capi.plugin.mjs ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js

ERROR  Watchpack Error (initial scan): Error: 

ENOTDIR: not a directory, scandir '.../node_modules/date-fns/esm/locale/index.js'

Reproduction:

Github: https://github.com/toniengelhardt/nuxt-bridge-debug/ CodeSandBox: https://githubbox.com/toniengelhardt/nuxt-bridge-debug/

toniengelhardt commented 2 years ago

The issue was already discussed here: nuxt/bridge#226