Skip to content

ramdisk throws "no such file or directory, symlink ..." if webpack output.path is specified #152

@agilgur5

Description

@agilgur5

Not sure if this is an upstream issue in webpack-plugin-ramdisk or an issue here.

  • Webpack Version: 4.9.1
  • Operating System (or Browser): macOS High Sierra 10.13.6
  • Node Version: 10.16.0
  • webpack-plugin-serve Version: 0.12.0

How Do We Reproduce?

Literally just setting ramdisk: true

Expected Behavior

Builds and serves content same as when ramdisk isn't set, but faster (and not output to disk).

Actual Behavior

⬡ wps: Ramdisk enabled
⬡ webpack-plugin-ramdisk: Build being written to /Volumes/wps/49d4ada5043fbb2f01d098d183664fc2/build
...

Error: ENOENT: no such file or directory, symlink '/Volumes/wps/49d4ada5043fbb2f01d098d183664fc2/build' -> '/path-to-my-project-dir/build/'
    at symlinkSync (fs.js:909:3)
    at WebpackPluginServe.init (/path-to-my-project-dir/node_modules/webpack-plugin-serve/lib/plugins/ramdisk.js:83:5)
    ...

It does delete the build directory before it errors out.
ls /Volumes/wps/ shows nothing, ls -a shows a .fseventsd directory.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions