Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EISDIR: illegal operation on a directory, open #434

Closed
stevemarksd opened this issue Feb 27, 2020 · 2 comments
Closed

Error: EISDIR: illegal operation on a directory, open #434

stevemarksd opened this issue Feb 27, 2020 · 2 comments

Comments

@stevemarksd
Copy link

Same as #52

new CopyPlugin([
        {from: resolveApp(`./public/anv.com`), to: buildFolder},
      ])

Error:

[Error: EISDIR: illegal operation on a directory, open 'XXXXX'] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'open',
  path: 'XXXXX'
}

XXXXX exists in my path

  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version:
  • copy-webpack-plugin Version:

Expected Behavior

Actual Behavior

Code

// webpack.config.js
// If your code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
// additional code, HEY YO remove this block if you don't need it

How Do We Reproduce?

@stevemarksd
Copy link
Author

Had to put an end slash on the path / and then , toType: 'dir'

@ericmhalvorsen
Copy link

For others, I was able to fix this by adding the ./ to the beginning of the path... ./src/dist instead of src/dist

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

No branches or pull requests

2 participants