Closed
Description
hi! Thanks for this awesome library. Everything works fine on my Mac, but when I try to use sass-embedded
in my Dockerfile
I get the error
$ webpack
#11 2.215 node:events:505
#11 2.215 throw er; // Unhandled 'error' event
#11 2.215 ^
#11 2.215
#11 2.215 Error: spawn /app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded ENOENT
#11 2.215 at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
#11 2.215 at onErrorNT (node:internal/child_process:478:16)
#11 2.215 at processTicksAndRejections (node:internal/process/task_queues:83:21)
#11 2.215 Emitted 'error' event on ChildProcess instance at:
#11 2.215 at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
#11 2.215 at onErrorNT (node:internal/child_process:478:16)
#11 2.215 at processTicksAndRejections (node:internal/process/task_queues:83:21) {
#11 2.215 errno: -2,
#11 2.215 code: 'ENOENT',
#11 2.215 syscall: 'spawn /app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded',
#11 2.215 path: '/app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded',
#11 2.215 spawnargs: []
#11 2.215 }
#11 2.246 error Command failed with exit code 1.
#11 2.246 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
this is strange, because the file exists on the image:
/app # ls -alh /app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded
-rwxr-xr-x 1 root root 8.6M Apr 26 02:41 /app/node_modules/sass-embedded/dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded
I've made a sample repo to reproduce the error: https://github.com/krystofbe/embedded-sass-test
Metadata
Metadata
Assignees
Labels
No labels