ym-project / gulp-esbuild

gulp plugin for esbuild bundler
MIT License
42 stars 7 forks source link

gulp-esbuild notify error when run command line in vscode terminal macos #9

Closed truong-go2joy closed 3 years ago

truong-go2joy commented 3 years ago

[22:57:07] Error in plugin "gulp-esbuild" Message: Build failed with 1 error: error: Cannot read directory "../../../../..": operation not permitted error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

ym-project commented 3 years ago

Hi! Do you have an example to reproduce this problem?

absolutelynothelix commented 3 years ago

it seems like an issue on your side. i suspect that you are trying to escape either / or /home/, not sure what mac will tell you if you do so, but make sure that your working directory allows you to do ../../../../.. (do pwd in vscode terminal and image where you will be after ../../../../.. and make sure that you have rights to be there).

truong-go2joy commented 3 years ago

Hi! Do you have an example to reproduce this problem?

Hi! Here is step by step, maby mighty9245 right, but I need to confirm about this my issue, if you're using macOS.

open vscode and direct to "gulp-esbuild > examples > mjs-gulpfile" project folder install package node_modules and "npm run build" at vscode terminal, then you will get that issue.

NOTE: If i just build only js file without import syntax, the process being fine. But if I use import another file into index.js, then that issue matched

truong-go2joy commented 3 years ago

it seems like an issue on your side. i suspect that you are trying to escape either / or /home/, not sure what mac will tell you if you do so, but make sure that your working directory allows you to do ../../../../.. (do pwd in vscode terminal and image where you will be after ../../../../.. and make sure that you have rights to be there).

maybe, but my os terminal is fine. This issue only match in vscode terminal

ym-project commented 3 years ago

Unfortunately I don't have macOS devices and I can't check it :(

truong-go2joy commented 3 years ago

Unfortunately I don't have macOS devices and I can't check it :(

never mind bro! I'll research on it, however please give me a suggestion if you have an idea. Cheers

ym-project commented 3 years ago

never mind bro! I'll research on it, however please give me a suggestion if you have an idea. Cheers

I googled and found information about "operation not permitted" for terminal https://linuxbeast.com/tutorials/fixes/operation-not-permitted-using-terminal-on-visual-studio-code-in-macbook-pro/. The author of the article added app to the Full Disk Access list.

Maybe you should do the same.

truong-go2joy commented 3 years ago

never mind bro! I'll research on it, however please give me a suggestion if you have an idea. Cheers

I googled and found information about "operation not permitted" for terminal https://linuxbeast.com/tutorials/fixes/operation-not-permitted-using-terminal-on-visual-studio-code-in-macbook-pro/. The author of the article added app to the Full Disk Access list.

Maybe you should do the same.

Nice! I've fixed it, thks for your support