samrith-s / parcel-plugin-structurize

A plugin to customize the output (dist) directory structure during production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

illegal read operation error

jshwlkr opened this issue · comments

On Windows, running https://github.com/chrisdmacrae/parceleventy with structurize defaults, and getting this error.

(node:24340) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (fs.js:493:3)
    at tryReadSync (fs.js:332:20)
    at Object.readFileSync (fs.js:369:19)
    at allStyles.forEach (D:\Workspace\test\node_modules\parcel-plugin-structurize\src\structurers\assets.structurize.js:35:38)
    at Proxy.forEach (<anonymous>)
    at markups.forEach (D:\Workspace\test\node_modules\parcel-plugin-structurize\src\structurers\assets.structurize.js:27:37)
(node:24340) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting
 a promise which was not handled with .catch(). (rejection id: 1)
(node:24340) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with
a non-zero exit code.

@jshwlkr I have published a version v1.1.5, which should solve this!

Do install it and let me know if you still get any problems. 😄

Closing due to inactivity.

commented

Same problem here:

  • macOS Mojave
  • Node.js v10.16.3
  • npm@6.11.2
  • parcel-bundler@1.12.3
  • parcel-plugin-structurize@1.1.5

I see. Can you probably get me a reproducible repository? I'm reopening this issue, since I had thought it was fixed with v1.1.5, but evidently it isn't.